]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: rewrite NULL comparison for pointers
authorNicholas Sim <nicholassimws@gmail.com>
Tue, 5 Apr 2016 16:21:32 +0000 (17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 00:53:47 +0000 (17:53 -0700)
commita8f742cf34a0e721318226f35171fa95a16e0725
tree4a644e318652d73d74c25f66c1bd27be8a0a46f9
parent6a946760b3de74c85e0e6092496e4944b6e166a1
staging: rtl8192u: rewrite NULL comparison for pointers

When testing pointers, it is not necessary to explicitly compare to
NULL. Rewrite if condition as (!ptr) or (ptr) as suggested in
Documentation/CodingStyle

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