]> err.no Git - linux-2.6/commitdiff
[MIPS] RTLX: Delete multiple definition of ret shaddowing each other.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 23 Feb 2007 14:12:32 +0000 (14:12 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 26 Feb 2007 23:06:06 +0000 (23:06 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/rtlx.c

index 7a8683ab6fdedc32ba70a7351377576be6d19d72..e14ae09eda2b7a94dd4d264bd9d0b7c864380811 100644 (file)
@@ -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);