summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLidza Louina <lidza.louina@gmail.com>2013-09-23 22:47:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-25 23:18:10 (GMT)
commit913b6f8e0dccadb1189e945d7438047d59efe785 (patch)
tree81ad76373b651350d1906bee9fb40fab2306f942
parent57a42192e61e7d0074fa6027e2565461bfd60147 (diff)
downloadlinux-fsl-qoriq-913b6f8e0dccadb1189e945d7438047d59efe785.tar.xz
staging: dgap: tty.c: removes smatch warning "ignoring unreachable code"
This patch removes this smatch warning: info: ignoring unreachable code. There were instances where there was extra code after the default action in switch statements. These default actions ended with a break so the code wasn't being run at anytime. This patch removes that extra code. Signed-off-by: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/dgap/dgap_tty.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/staging/dgap/dgap_tty.c b/drivers/staging/dgap/dgap_tty.c
index 2b26152..7f909b8 100644
--- a/drivers/staging/dgap/dgap_tty.c
+++ b/drivers/staging/dgap/dgap_tty.c
@@ -3513,10 +3513,6 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
return(-EINVAL);
}
- DGAP_UNLOCK(ch->ch_lock, lock_flags2);
- DGAP_UNLOCK(bd->bd_lock, lock_flags);
- return(-ENOIOCTLCMD);
-
case DIGI_GETA:
/* get information for ditty */
DGAP_UNLOCK(ch->ch_lock, lock_flags2);
@@ -3586,12 +3582,4 @@ static int dgap_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
return(-ENOIOCTLCMD);
}
-
- DGAP_UNLOCK(ch->ch_lock, lock_flags2);
- DGAP_UNLOCK(bd->bd_lock, lock_flags);
-
- DPR_IOCTL(("dgap_tty_ioctl end - cmd %s (%x), arg %lx\n",
- dgap_ioctl_name(cmd), cmd, arg));
-
- return(0);
}