]> 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)
commit41c67b507b5324256b053b9b97834e3f83fdbf00
tree7dc8663c1dffb7e263b111644616d889d80b223e
parent63b9185bee159b821f14cac3f1e22e664de45677
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