提交 6c4743f7 编写于 作者: L Luca Ceresoli 提交者: Greg Kroah-Hartman

staging: rtl8188eu: simplify nested ifs

Signed-off-by: NLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 2ff4e79f
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册