]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
isdn/capi: drop two dead if branches
authorTilman Schmidt <tilman@imap.cc>
Fri, 3 Oct 2014 15:03:32 +0000 (17:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2014 01:17:51 +0000 (21:17 -0400)
The last branch in command_2_index() cannot be reached since
c==0xff is already caught by the first "if".
The empty second branch makes no difference since no other branch
will be taken for c<0x0f.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capiutil.c

index 6e797e502cfaf0fc2c2459de6e3d80885c145117..4073d1684d07ef22a78dfd2ef966ad2d62055757 100644 (file)
@@ -205,11 +205,8 @@ static unsigned command_2_index(unsigned c, unsigned sc)
 {
        if (c & 0x80)
                c = 0x9 + (c & 0x0f);
-       else if (c <= 0x0f);
        else if (c == 0x41)
                c = 0x9 + 0x1;
-       else if (c == 0xff)
-               c = 0x00;
        return (sc & 3) * (0x9 + 0x9) + c;
 }