diff options
author | Uri Shkolnik <uris@siano-ms.com> | 2009-05-17 05:02:46 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:14:35 -0400 |
commit | 5d2387e3cae1e70febc1bd805f248d6e13cb254f (patch) | |
tree | 007e945c07d46959bb7c2dc557a5a91755f713b5 | |
parent | 8cc8ef265015cee192fddad3801f09c9c750821b (diff) |
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 d400a82daf7d..00a1053e5f98 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) | |||
905 | coredev->device_flags &= ~SMS_DEVICE_NOT_READY; | 905 | coredev->device_flags &= ~SMS_DEVICE_NOT_READY; |
906 | } | 906 | } |
907 | 907 | ||
908 | if (rc != 0) | 908 | if (rc < 0) |
909 | sms_err("return error code %d.", rc); | 909 | sms_err("return error code %d.", rc); |
910 | return rc; | 910 | return rc; |
911 | } | 911 | } |