summaryrefslogtreecommitdiffstats
path: root/drivers/media/common/siano/smsir.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/common/siano/smsir.c')
-rw-r--r--drivers/media/common/siano/smsir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/common/siano/smsir.c b/drivers/media/common/siano/smsir.c
index 273043ea8f47..35d0e887bd65 100644
--- a/drivers/media/common/siano/smsir.c
+++ b/drivers/media/common/siano/smsir.c
@@ -107,8 +107,7 @@ int sms_ir_init(struct smscore_device_t *coredev)
void sms_ir_exit(struct smscore_device_t *coredev)
{
- if (coredev->ir.dev)
- rc_unregister_device(coredev->ir.dev);
+ rc_unregister_device(coredev->ir.dev);
sms_log("");
}
OpenPOWER on IntegriCloud