diff options
author | John Whitmore <johnfwhitmore@gmail.com> | 2018-10-07 22:40:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-09 15:26:04 +0200 |
commit | 20438d93d4304c0fc6e063c0e1f8d6580e88a29b (patch) | |
tree | 359d64afc8810fe7a12b418674c7149ceb104a76 /drivers/staging/rtl8192u | |
parent | 6e67e8f0f0d26e01528a6e97a0228ac5d9457244 (diff) | |
download | lwn-20438d93d4304c0fc6e063c0e1f8d6580e88a29b.tar.gz lwn-20438d93d4304c0fc6e063c0e1f8d6580e88a29b.zip |
staging:rtl8192u: Correct comparison with NULL - Style
Correct code to remote comparison with NULL, this clears the resulting
checkpatch issue.
This is a coding style change which should not impact runtime code
execution.
Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c index dec8d527d7df..d7975aa335b2 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c @@ -280,7 +280,7 @@ int __init ieee80211_debug_init(void) ieee80211_debug_level = debug; ieee80211_proc = proc_mkdir(DRV_NAME, init_net.proc_net); - if (ieee80211_proc == NULL) { + if (!ieee80211_proc) { IEEE80211_ERROR("Unable to create " DRV_NAME " proc directory\n"); return -EIO; |