lkml.org 
[lkml]   [2015]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] usb: move assignment out of if condition
On Thu, Jul 02, 2015 at 06:23:59PM -0400, Kris Borer wrote:
> Fix four occurrences of checkpatch.pl error:
>
> ERROR: do not use assignment in if condition
>
> Signed-off-by: Kris Borer <kborer@gmail.com>
> ---
> drivers/usb/core/hcd.c | 19 +++++++++++++------
> 1 file changed, 13 insertions(+), 6 deletions(-)

Again, please use Coccinelle for something like this, otherwise I'm not
going to trust that it is correct :)

thanks,

greg k-h


\
 
 \ /
  Last update: 2015-07-07 06:21    [W:0.047 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site