]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: vt6656: replace explicit NULL comparison with ! operator
authorAlison Schofield <amsfield22@gmail.com>
Thu, 11 Feb 2016 07:06:45 +0000 (23:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 04:00:30 +0000 (20:00 -0800)
commit27f31cf9f7235cb3aa10860bf4fde5df6893bf52
tree335fbab90c7dfd5e8a5132d855e00b9528655cd7
parente3b07865f5f6962d83e8b94d2968a9cfab7bdce5
staging: vt6656: replace explicit NULL comparison with ! operator

Replace explicit NULL comparison with ! operator to simplify code.

Found with Coccinelle:
@@
expression e;
statement s0, s1;
@@

if (
(
+ !
e
- == NULL
 || ...
)
 ) s0 else s1

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/usbpipe.c