diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2015-04-16 23:28:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-08 09:24:10 +0200 |
commit | 6c4743f7d639cdc810e6536a7d2832aab433ad08 (patch) | |
tree | 0037d9b95569969a770c7ede3c8e9174568c5dab /drivers/staging/rtl8188eu/os_dep | |
parent | 2ff4e79f0ed3573515a49af8f91e64d669a41dac (diff) | |
download | op-kernel-dev-6c4743f7d639cdc810e6536a7d2832aab433ad08.zip op-kernel-dev-6c4743f7d639cdc810e6536a7d2832aab433ad08.tar.gz |
staging: rtl8188eu: simplify nested ifs
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/os_intfs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c index e5e9235..9cd3a84 100644 --- a/drivers/staging/rtl8188eu/os_dep/os_intfs.c +++ b/drivers/staging/rtl8188eu/os_dep/os_intfs.c @@ -224,11 +224,9 @@ void rtw_proc_init_one(struct net_device *dev) rtw_proc); dir_dev = padapter->dir_dev; if (dir_dev == NULL) { - if (rtw_proc_cnt == 0) { - if (rtw_proc) { - remove_proc_entry(rtw_proc_name, init_net.proc_net); - rtw_proc = NULL; - } + if (rtw_proc_cnt == 0 && rtw_proc) { + remove_proc_entry(rtw_proc_name, init_net.proc_net); + rtw_proc = NULL; } pr_info("Unable to create dir_dev directory\n"); |