summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-02-23 15:12:32 +0100
committerRalf Baechle <ralf@linux-mips.org>2007-02-27 00:06:06 +0100
commit3dac2561e2ed8d75a8bb682c25a32b271298ff49 (patch)
treebba7c4e5b27b165b494db9db55bc3f5f9266e512
parent[MIPS] RTLX, VPE: Make open actually atomic. (diff)
downloadlinux-3dac2561e2ed8d75a8bb682c25a32b271298ff49.tar.xz
linux-3dac2561e2ed8d75a8bb682c25a32b271298ff49.zip
[MIPS] RTLX: Delete multiple definition of ret shaddowing each other.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/rtlx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c
index 7a8683ab6fde..e14ae09eda2b 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);