[Patch] Dead code in drivers/isdn/avm/avmcard.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

this fixes coverity id #2. the if (i==0) is pretty useless,
since we assing i=0, just the line before.
Just compile tested.

Signed-off-by: Eric Sesterhenn <[email protected]>

--- linux-2.6.16-rc5-mm1/drivers/isdn/hardware/avm/avmcard.h.orig	2006-03-07 20:44:33.000000000 +0100
+++ linux-2.6.16-rc5-mm1/drivers/isdn/hardware/avm/avmcard.h	2006-03-07 20:44:38.000000000 +0100
@@ -437,8 +437,7 @@ static inline unsigned int t1_get_slice(
 #endif
 					dp += i;
 					i = 0;
-					if (i == 0)
-						break;
+					break;
 					/* fall through */
 				default:
 					*dp++ = b1_get_byte(base);


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux