[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMzoamZL1aLidqpBsySx-iZZQ968GPRYx6uZntXcbACopSZn5A@mail.gmail.com>
Date: Mon, 1 Aug 2016 11:24:45 +0100
From: David Binderman <linuxdev.baldrick@...il.com>
To: hans.verkuil@...co.com, linux-media@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
dcb314@...mail.com
Subject: include/linux/cec-funcs.h:1280: suspicious expression ?
Hello there,
include/linux/cec-funcs.h:1280:50: warning: logical ‘and’ applied to
non-boolean constant [-Wlogical-op]
Source code is
msg->msg[4] = ui_cmd->channel_identifier.major && 0xff;
Maybe better code
msg->msg[4] = ui_cmd->channel_identifier.major & 0xff;
Regards
David Binderman
Powered by blists - more mailing lists