浏览代码

staging: wilc1000: Simplify code by eliminating else block

Remove else block here as it is not useful after the return statement in the corresponding if block. This simplifies code. This issue was identified by checkpatch.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Janani Ravichandran 9 年之前
父节点
当前提交
24c6c29d85
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      drivers/staging/wilc1000/host_interface.c

+ 2 - 3
drivers/staging/wilc1000/host_interface.c

@@ -3351,10 +3351,9 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif,
 		*pu32RcvdAssocRespInfoLen = 0;
 		*pu32RcvdAssocRespInfoLen = 0;
 		PRINT_ER("Failed to send association response config packet\n");
 		PRINT_ER("Failed to send association response config packet\n");
 		return -EINVAL;
 		return -EINVAL;
-	} else {
-		*pu32RcvdAssocRespInfoLen = wid.size;
 	}
 	}
-
+	
+	*pu32RcvdAssocRespInfoLen = wid.size;
 	return result;
 	return result;
 }
 }