Re: [PATCH] usb: chipidea: use better pattern with WARN_ON()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 07, 2016 at 05:46:09PM +0530, Atul Raj wrote:
> Instead of using:
> if (cond) {
>    WARN_ON(1);
>    do_stuff();
> }
> 
> Use a better pattern with WARN_ON() placed in if condition:
> 
> if (WARN_ON(cond))
>    do_stuff();

Why?  What does this help with?

And why are you sending patches that are different, yet have identical
subject lines?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux