summaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorBhanusree Pola <bhanusreemahesh@gmail.com>2019-03-21 15:05:27 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-21 20:08:07 +0100
commit53db33a489349128a2a430f8f0e924417c4c31c8 (patch)
tree89e50eb50f0bfe4c0feef80fbce4f390ed807eb4 /scripts/stackusage
parent85b45eadbe6e605d3dae956404c4eb0aa06fe6d3 (diff)
downloadlinux-53db33a489349128a2a430f8f0e924417c4c31c8.tar.gz
linux-53db33a489349128a2a430f8f0e924417c4c31c8.zip
Staging: media: Use !x in place of NULL comparision
Test for NULL as !x instead of NULL comparisions for functions that return NULL on failure. Issue found using coccinelle Semantic patch used to solve the problem is as follows // <smpl> @@ expression x; statement S; @@ x = (\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\| usb_alloc_urb\|alloc_netdev\|dev_alloc_skb\)(...)); -if(x==NULL) +if(!x) // </smpl> Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions