提交 d3e4ea01 编写于 作者: M Mauro Carvalho Chehab

[media] em28xx-cards: fix a warning

drivers/media/usb/em28xx/em28xx-cards.c:3309:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 03ad9fe4
...@@ -3306,7 +3306,7 @@ static int em28xx_usb_probe(struct usb_interface *interface, ...@@ -3306,7 +3306,7 @@ static int em28xx_usb_probe(struct usb_interface *interface,
dev->num_alt = interface->num_altsetting; dev->num_alt = interface->num_altsetting;
if ((card[nr] >= 0) && (card[nr] < em28xx_bcount)) if ((unsigned)card[nr] < em28xx_bcount)
dev->model = card[nr]; dev->model = card[nr];
/* save our data pointer in this interface device */ /* save our data pointer in this interface device */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册