提交 5d2387e3 编写于 作者: U Uri Shkolnik 提交者: Mauro Carvalho Chehab

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: NUri Shkolnik <uris@siano-ms.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 8cc8ef26
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册