]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wlan-ng: rewrite NULL comparison
authorNicholas Sim <nicholassimws@gmail.com>
Tue, 5 Apr 2016 16:37:12 +0000 (17:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:43:15 +0000 (17:43 -0700)
commit48d802d29d54b6049e4b76a7f7b246789edd8f4b
tree7dc8663c1dffb7e263b111644616d889d80b223e
parent7e5122608256ea516a177bfafbb24071dcd3b610
staging: wlan-ng: rewrite NULL comparison

It is not necessary to compare explicitly to NULL. Rewrite if condition
as (!dev) or (dev) as suggested in Documentation/CodingStyle

Signed-off-by: Nicholas Sim <nicholassimws@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c