diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-04-08 09:33:45 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 12:57:03 -0300 |
commit | d22e546ea18ee66c255af906f2714d3ee82d4b42 (patch) | |
tree | b37064b032a805ddef7ce4ee3bb4feb6996bedf7 /drivers/media/IR | |
parent | b320f80a6a02bbf31f7ed6ab3332f7c4ebaaac2c (diff) | |
download | blackbird-obmc-linux-d22e546ea18ee66c255af906f2714d3ee82d4b42.tar.gz blackbird-obmc-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/media/IR')
-rw-r--r-- | drivers/media/IR/ir-sysfs.c | 2 |
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")) |