From: Tilman Schmidt Date: Fri, 3 Oct 2014 15:03:32 +0000 (+0200) Subject: isdn/capi: drop two dead if branches X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=51db998fb6e04e8dfcf4e33295651367b91238a5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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; }