Commit 6c4743f7 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Greg Kroah-Hartman

staging: rtl8188eu: simplify nested ifs

Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2ff4e79f
...@@ -224,11 +224,9 @@ void rtw_proc_init_one(struct net_device *dev) ...@@ -224,11 +224,9 @@ void rtw_proc_init_one(struct net_device *dev)
rtw_proc); rtw_proc);
dir_dev = padapter->dir_dev; dir_dev = padapter->dir_dev;
if (dir_dev == NULL) { if (dir_dev == NULL) {
if (rtw_proc_cnt == 0) { if (rtw_proc_cnt == 0 && rtw_proc) {
if (rtw_proc) { remove_proc_entry(rtw_proc_name, init_net.proc_net);
remove_proc_entry(rtw_proc_name, init_net.proc_net); rtw_proc = NULL;
rtw_proc = NULL;
}
} }
pr_info("Unable to create dir_dev directory\n"); pr_info("Unable to create dir_dev directory\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment