summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorGargi Sharma <gs051095@gmail.com>2017-02-23 23:06:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 11:17:01 +0300
commit5043bd3c33e1ffee3fd20e5057742f3a6abb34b7 (patch)
treef42a9ad8324d18f119a76d3ae459b27b67603e67 /scripts/patch-kernel
parent3337134e419bd392cf4d63c66848536ae0c9d8df (diff)
downloadlinux-5043bd3c33e1ffee3fd20e5057742f3a6abb34b7.tar.xz
staging: rtl8192e: replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to simplify code. Found with Coccinelle script: @@ expression ptr; position p; statement s0, s1; @@ ptr@p = \(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\| alloc_netdev\|dev_alloc_skb\)(...) ... when != ptr if ( ( + ! ptr - == NULL ) ) s0 else s1 Signed-off-by: Gargi Sharma <gs051095@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions