Skip to contentSkip to conversation

check unsigned < 0 in ieee1394/dv1394.c

PATCH New Eric Sesterhenn / snakebyte 1 participant 1 message Dec 16, 2005 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 check unsigned < 0 in ieee1394/dv1394.c

hi,

since channel is always used unsigned, i removed the check for < 0.

drivers/ieee1394/dv1394.c renamed from drivers/ieee1394/dv1394.c.orig +1 -1
@@ -929,7 +929,7 @@ static int do_dv1394_init(struct video_c
 		/* default SYT offset is 3 cycles */
 		init->syt_offset = 3;
 
-	if ( (init->channel > 63) || (init->channel < 0) )
+	if (init->channel > 63)
 		init->channel = 63;
 
 	chan_mask = (u64)1 << init->channel;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors