summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGargi Sharma2017-02-23 20:40:51 +0100
committerGreg Kroah-Hartman2017-03-06 09:17:01 +0100
commitc01496a7d2abe8462e10c9a536b5e0c46a460d06 (patch)
tree16becf24b869c42bcbe99f600fc04034c6930663 /Makefile
parentstaging: rtl8192e: Remove useless parentheses (diff)
downloadkernel-qcow2-linux-c01496a7d2abe8462e10c9a536b5e0c46a460d06.tar.gz
kernel-qcow2-linux-c01496a7d2abe8462e10c9a536b5e0c46a460d06.tar.xz
kernel-qcow2-linux-c01496a7d2abe8462e10c9a536b5e0c46a460d06.zip
staging: rtl8188eu: replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to simplify code. Found with Coccinelle script: @@ expression ptr; position p; statement s0; @@ ptr@p = \(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\| alloc_netdev\|dev_alloc_skb\)(...) ... when != ptr if ( ( + ! ptr - == NULL ) ) s0 Signed-off-by: Gargi Sharma <gs051095@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions