]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
V4L/DVB (10111): quickcam_messenger.c: fix a warning
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 22:26:17 +0000 (19:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:33 +0000 (09:40 -0200)
drivers/media/video/usbvideo/quickcam_messenger.c: In function ‘qcm_sensor_init’:
drivers/media/video/usbvideo/quickcam_messenger.c:450: warning: operation on ‘ret’ may be undefined

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/usbvideo/quickcam_messenger.c

index 4459b8a7f818775359ebecdef1926fe211cd27a9..606402a54eba5f25b6385323f23f184b58ff2cf0 100644 (file)
@@ -447,7 +447,7 @@ static int qcm_sensor_init(struct uvd *uvd)
        CHECK_RET(ret, qcm_stv_setw(uvd->dev, 0x15c1,
                                cpu_to_le16(ISOC_PACKET_SIZE)));
        CHECK_RET(ret, qcm_stv_setb(uvd->dev, 0x15c3, 0x08));
-       CHECK_RET(ret, ret = qcm_stv_setb(uvd->dev, 0x143f, 0x01));
+       CHECK_RET(ret, qcm_stv_setb(uvd->dev, 0x143f, 0x01));
 
        CHECK_RET(ret, qcm_stv_setb(uvd->dev, STV_ISO_ENABLE, 0x00));