V4L/DVB (11822): Siano: smscore - bug fix at get_device_mode

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>
This commit is contained in:
Uri Shkolnik 2009-05-17 06:02:46 -03:00 committed by Mauro Carvalho Chehab
parent 8cc8ef2650
commit 5d2387e3ca

View 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;
}