From: Eric Sesterhenn Date: Sun, 26 Mar 2006 09:38:38 +0000 (-0800) Subject: [PATCH] Dead code in drivers/isdn/avm/avmcard.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dac5bafa3521a10a42a470ab612cd2bbc12d4203;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] Dead code in drivers/isdn/avm/avmcard.h This fixes coverity id #2. the if (i==0) is pretty useless, since we assing i=0, just the line before. Signed-off-by: Eric Sesterhenn Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/isdn/hardware/avm/avmcard.h b/drivers/isdn/hardware/avm/avmcard.h index 296d6a6f749f..3b431723c7cb 100644 --- a/drivers/isdn/hardware/avm/avmcard.h +++ b/drivers/isdn/hardware/avm/avmcard.h @@ -437,9 +437,7 @@ static inline unsigned int t1_get_slice(unsigned int base, #endif dp += i; i = 0; - if (i == 0) - break; - /* fall through */ + break; default: *dp++ = b1_get_byte(base); i--;