[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>
This commit is contained in:
Родитель
ab7bdb1298
Коммит
1e19c21ec7
|
@ -977,13 +977,16 @@ static int smscore_load_firmware_family2(struct smscore_device_t *coredev,
|
||||||
msleep(400);
|
msleep(400);
|
||||||
|
|
||||||
exit_fw_download:
|
exit_fw_download:
|
||||||
sms_debug("rc=%d, postload=0x%p ", rc, coredev->postload_handler);
|
|
||||||
|
|
||||||
kfree(msg);
|
kfree(msg);
|
||||||
|
|
||||||
return ((rc >= 0) && coredev->postload_handler) ?
|
if (coredev->postload_handler) {
|
||||||
coredev->postload_handler(coredev->context) :
|
sms_debug("rc=%d, postload=0x%p", rc, coredev->postload_handler);
|
||||||
rc;
|
if (rc >= 0)
|
||||||
|
return coredev->postload_handler(coredev->context);
|
||||||
|
}
|
||||||
|
|
||||||
|
sms_debug("rc=%d", rc);
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче