summaryrefslogtreecommitdiff
path: root/drivers/isdn/capi
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2014-10-03 19:03:32 +0400
committerDavid S. Miller <davem@davemloft.net>2014-10-06 05:17:51 +0400
commit51db998fb6e04e8dfcf4e33295651367b91238a5 (patch)
tree62918fb84b013b7f5c8ab0810c3cd43ef02cbe52 /drivers/isdn/capi
parent1e203c1a2c104c8f8030245d2afaa337a79b4375 (diff)
downloadlinux-51db998fb6e04e8dfcf4e33295651367b91238a5.tar.xz
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.c3
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;
}