diff options
author | Uri Shkolnik <uris@siano-ms.com> | 2009-05-17 09:02:46 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 22:14:35 (GMT) |
commit | 5d2387e3cae1e70febc1bd805f248d6e13cb254f (patch) | |
tree | 007e945c07d46959bb7c2dc557a5a91755f713b5 | |
parent | 8cc8ef265015cee192fddad3801f09c9c750821b (diff) | |
download | linux-fsl-qoriq-5d2387e3cae1e70febc1bd805f248d6e13cb254f.tar.xz |
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>
-rw-r--r-- | drivers/media/dvb/siano/smscoreapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c index d400a82..00a1053 100644 --- a/drivers/media/dvb/siano/smscoreapi.c +++ b/drivers/media/dvb/siano/smscoreapi.c @@ -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; } |