浏览代码

[MIPS] RTLX: Delete multiple definition of ret shaddowing each other.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 18 年之前
父节点
当前提交
3dac2561e2
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      arch/mips/kernel/rtlx.c

+ 0 - 4
arch/mips/kernel/rtlx.c

@@ -166,8 +166,6 @@ int rtlx_open(int index, int can_sleep)
 	if (rtlx == NULL) {
 		if( (p = vpe_get_shared(RTLX_TARG_VPE)) == NULL) {
 			if (can_sleep) {
-				int ret = 0;
-
 				__wait_event_interruptible(channel_wqs[index].lx_queue,
 				                           (p = vpe_get_shared(RTLX_TARG_VPE)),
 				                           ret);
@@ -183,8 +181,6 @@ int rtlx_open(int index, int can_sleep)
 
 		if (*p == NULL) {
 			if (can_sleep) {
-				int ret = 0;
-
 				__wait_event_interruptible(channel_wqs[index].lx_queue,
 				                           *p != NULL,
 				                           ret);