]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
V4L/DVB (11822): Siano: smscore - bug fix at get_device_mode
authorUri Shkolnik <uris@siano-ms.com>
Sun, 17 May 2009 09:02:46 +0000 (06:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 22:14:35 +0000 (19:14 -0300)
Fix bug that cause error log to echo also if success

Signed-off-by: Uri Shkolnik <uris@siano-ms.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smscoreapi.c

index d400a82daf7d57e644b1a6359437c45c27b5c279..00a1053e5f984e898848bd2b19c82ab04e1db069 100644 (file)
@@ -905,7 +905,7 @@ int smscore_set_device_mode(struct smscore_device_t *coredev, int mode)
                coredev->device_flags &= ~SMS_DEVICE_NOT_READY;
        }
 
-       if (rc != 0)
+       if (rc < 0)
                sms_err("return error code %d.", rc);
        return rc;
 }