aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/IR')
-rw-r--r--drivers/media/IR/ir-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/IR/ir-sysfs.c b/drivers/media/IR/ir-sysfs.c
index e47a4f102637..af1edd073b16 100644
--- a/drivers/media/IR/ir-sysfs.c
+++ b/drivers/media/IR/ir-sysfs.c
@@ -91,7 +91,7 @@ static ssize_t store_protocol(struct device *d,
91 unsigned long flags; 91 unsigned long flags;
92 char *buf; 92 char *buf;
93 93
94 while (buf = strsep((char **) &data, " \n")) { 94 while ((buf = strsep((char **) &data, " \n")) != NULL) {
95 if (!strcasecmp(buf, "rc-5") || !strcasecmp(buf, "rc5")) 95 if (!strcasecmp(buf, "rc-5") || !strcasecmp(buf, "rc5"))
96 ir_type |= IR_TYPE_RC5; 96 ir_type |= IR_TYPE_RC5;
97 if (!strcasecmp(buf, "pd") || !strcasecmp(buf, "pulse-distance")) 97 if (!strcasecmp(buf, "pd") || !strcasecmp(buf, "pulse-distance"))