mirror of https://gitee.com/openkylin/linux.git
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:
parent
8cc8ef2650
commit
5d2387e3ca
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue