diff options
author | Tilman Schmidt <tilman@imap.cc> | 2014-10-03 17:03:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-05 21:17:51 -0400 |
commit | 51db998fb6e04e8dfcf4e33295651367b91238a5 (patch) | |
tree | 62918fb84b013b7f5c8ab0810c3cd43ef02cbe52 /drivers/isdn/capi | |
parent | 1e203c1a2c104c8f8030245d2afaa337a79b4375 (diff) |
isdn/capi: drop two dead if branches
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>
Diffstat (limited to 'drivers/isdn/capi')
-rw-r--r-- | drivers/isdn/capi/capiutil.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/isdn/capi/capiutil.c b/drivers/isdn/capi/capiutil.c index 6e797e502cfa..4073d1684d07 100644 --- a/drivers/isdn/capi/capiutil.c +++ b/drivers/isdn/capi/capiutil.c @@ -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; } |