summaryrefslogtreecommitdiff
path: root/drivers/media/IR
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-08 12:33:45 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 15:57:03 (GMT)
commitd22e546ea18ee66c255af906f2714d3ee82d4b42 (patch)
treeb37064b032a805ddef7ce4ee3bb4feb6996bedf7 /drivers/media/IR
parentb320f80a6a02bbf31f7ed6ab3332f7c4ebaaac2c (diff)
downloadlinux-fsl-qoriq-d22e546ea18ee66c255af906f2714d3ee82d4b42.tar.xz
V4L/DVB: ir-core: fix gcc warning noise
drivers/media/IR/ir-sysfs.c: In function ‘store_protocol’: drivers/media/IR/ir-sysfs.c:93: warning: suggest parentheses around assignment used as truth value Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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 e47a4f1..af1edd0 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,
unsigned long flags;
char *buf;
- while (buf = strsep((char **) &data, " \n")) {
+ while ((buf = strsep((char **) &data, " \n")) != NULL) {
if (!strcasecmp(buf, "rc-5") || !strcasecmp(buf, "rc5"))
ir_type |= IR_TYPE_RC5;
if (!strcasecmp(buf, "pd") || !strcasecmp(buf, "pulse-distance"))