mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
media: mxl692: remove impossible condition
Fix the following coverity warning: This greater-than-or-equal-to-zero comparison of an unsigned value is always true. "opcode >= 0". Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
be8cd6cccf
commit
4103369093
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ static int mxl692_memread(struct mxl692_dev *dev, u32 addr,
|
|||
|
||||
static const char *mxl692_opcode_string(u8 opcode)
|
||||
{
|
||||
if (opcode >= 0 && opcode <= MXL_EAGLE_OPCODE_INTERNAL)
|
||||
if (opcode <= MXL_EAGLE_OPCODE_INTERNAL)
|
||||
return MXL_EAGLE_OPCODE_STRING[opcode];
|
||||
|
||||
return "invalid opcode";
|
||||
|
|
Loading…
Reference in a new issue