Re: [PATCH v2] usb: move assignment out of if condition

From: Greg KH
Date: Tue Jul 07 2015 - 00:00:45 EST


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@xxxxxxxxx>
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/