]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: dgnc: removes unreachable code
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 3 Jul 2014 10:13:06 +0000 (19:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 19:07:30 +0000 (12:07 -0700)
dgnc_tty_ioctl() cannot reach the end of function.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index f7409d90978119fbc1cd961a1ecc4ecf42d14377..c07ec74b8995c10ece995bc792abd4a39ae29d2b 100644 (file)
@@ -3430,11 +3430,4 @@ static int dgnc_tty_ioctl(struct tty_struct *tty, unsigned int cmd,
 
                return -ENOIOCTLCMD;
        }
-
-       DGNC_UNLOCK(ch->ch_lock, lock_flags);
-
-       DPR_IOCTL(("dgnc_tty_ioctl end - cmd %s (%x), arg %lx\n",
-               dgnc_ioctl_name(cmd), cmd, arg));
-
-       return 0;
 }