summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-04-08 09:33:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 12:57:03 -0300
commitd22e546ea18ee66c255af906f2714d3ee82d4b42 (patch)
treeb37064b032a805ddef7ce4ee3bb4feb6996bedf7 /drivers
parentb320f80a6a02bbf31f7ed6ab3332f7c4ebaaac2c (diff)
downloadblackbird-op-linux-d22e546ea18ee66c255af906f2714d3ee82d4b42.tar.gz
blackbird-op-linux-d22e546ea18ee66c255af906f2714d3ee82d4b42.zip
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')
-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,
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"))
OpenPOWER on IntegriCloud