aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-picolcd_cir.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/hid-picolcd_cir.c')
-rw-r--r--drivers/hid/hid-picolcd_cir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-picolcd_cir.c b/drivers/hid/hid-picolcd_cir.c
index 14c5ce0e71bc..13ca9191b630 100644
--- a/drivers/hid/hid-picolcd_cir.c
+++ b/drivers/hid/hid-picolcd_cir.c
@@ -51,7 +51,7 @@ int picolcd_raw_cir(struct picolcd_data *data,
51 51
52 /* ignore if rc_dev is NULL or status is shunned */ 52 /* ignore if rc_dev is NULL or status is shunned */
53 spin_lock_irqsave(&data->lock, flags); 53 spin_lock_irqsave(&data->lock, flags);
54 if (data->rc_dev && (data->status & PICOLCD_CIR_SHUN)) { 54 if (!data->rc_dev || (data->status & PICOLCD_CIR_SHUN)) {
55 spin_unlock_irqrestore(&data->lock, flags); 55 spin_unlock_irqrestore(&data->lock, flags);
56 return 1; 56 return 1;
57 } 57 }