From: Ralf Baechle Date: Fri, 23 Feb 2007 14:12:32 +0000 (+0000) Subject: [MIPS] RTLX: Delete multiple definition of ret shaddowing each other. X-Git-Tag: v2.6.21-rc2~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dac2561e2ed8d75a8bb682c25a32b271298ff49;p=linux-2.6 [MIPS] RTLX: Delete multiple definition of ret shaddowing each other. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index 7a8683ab6f..e14ae09eda 100644 --- a/arch/mips/kernel/rtlx.c +++ b/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);