check unsigned < 0 in ieee1394/dv1394.c
PATCH 1/1 check unsigned < 0 in ieee1394/dv1394.c
hi,
since channel is always used unsigned, i removed the check for < 0.
Signed-off-by Eric Sesterhenn <[email protected]>
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