aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/siano
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-07 05:32:47 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-21 06:41:42 -0400
commit1e19c21ec7b5e66228602f4d88d894e23db1e004 (patch)
tree4a4817dd5ac6fde08d6b8e5ac66a233690579fa5 /drivers/media/common/siano
parentab7bdb12984732e5ebac00d6a180431cbd4e0ce1 (diff)
[media] siano: fix the debug message
Instead of displaying this: [ 61.869415] smscore_load_firmware_family2: rc=0, postload=0x (null) Display, instead: [ 1348.441160] smscore_load_firmware_family2: rc=0 Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/siano')
-rw-r--r--drivers/media/common/siano/smscoreapi.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/media/common/siano/smscoreapi.c b/drivers/media/common/siano/smscoreapi.c
index 5034153ed09c..7302f950c6bd 100644
--- a/drivers/media/common/siano/smscoreapi.c
+++ b/drivers/media/common/siano/smscoreapi.c
@@ -977,13 +977,16 @@ static int smscore_load_firmware_family2(struct smscore_device_t *coredev,
977 msleep(400); 977 msleep(400);
978 978
979exit_fw_download: 979exit_fw_download:
980 sms_debug("rc=%d, postload=0x%p ", rc, coredev->postload_handler);
981
982 kfree(msg); 980 kfree(msg);
983 981
984 return ((rc >= 0) && coredev->postload_handler) ? 982 if (coredev->postload_handler) {
985 coredev->postload_handler(coredev->context) : 983 sms_debug("rc=%d, postload=0x%p", rc, coredev->postload_handler);
986 rc; 984 if (rc >= 0)
985 return coredev->postload_handler(coredev->context);
986 }
987
988 sms_debug("rc=%d", rc);
989 return rc;
987} 990}
988 991
989 992