Krzysztof Opasiak 2bdf6ea51c usb: usbip: vudc: Fix WARN_ON() usage pattern
Fix WARN_ON() macro usage as suggested by Felipe.
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();

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-28 12:28:08 -07:00
..
2016-04-26 15:19:50 -07:00
2016-04-26 15:19:50 -07:00
2016-04-19 04:33:15 +09:00
2016-04-26 15:19:50 -07:00
2016-04-26 15:19:50 -07:00
2016-04-26 15:19:50 -07:00
2016-04-26 15:19:50 -07:00
2016-04-26 15:19:50 -07:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface
	- document the protocol

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>