diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-17 09:02:46 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-17 09:02:46 +0000 |
commit | 748341157e592566108cd3174bad52bdd3c3c07c (patch) | |
tree | af5d68bc6a5165054d65d25c13a6de38f7b51de9 /linux/drivers/media/dvb/siano/smscoreapi.c | |
parent | a201f474c8b7e9763bba588bdfc6fe757020a851 (diff) | |
download | mediapointer-dvb-s2-748341157e592566108cd3174bad52bdd3c3c07c.tar.gz mediapointer-dvb-s2-748341157e592566108cd3174bad52bdd3c3c07c.tar.bz2 |
Siano: smscore - bug fix at get_device_mode
From: Uri Shkolnik <uris@siano-ms.com>
Fix bug that cause error log to echo also if success
Priority: normal
Signed-off-by: Uri Shkolnik <uris@siano-ms.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smscoreapi.c')
-rw-r--r-- | linux/drivers/media/dvb/siano/smscoreapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/siano/smscoreapi.c b/linux/drivers/media/dvb/siano/smscoreapi.c index d31380b26..16917016c 100644 --- a/linux/drivers/media/dvb/siano/smscoreapi.c +++ b/linux/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; } |