Skip to content

Commit d4fda7e

Browse files
intel-lab-lkpsudeep-holla
authored andcommitted
firmware: arm_scmi: Fix boolconv.cocci warnings
drivers/firmware/arm_scmi/virtio.c:225:40-45: WARNING: conversion to bool not needed here Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by: scripts/coccinelle/misc/boolconv.cocci Link: https://lore.kernel.org/r/20210807173127.GA43248@a24dbc127934 CC: Igor Skalkin <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 1e7cbfa commit d4fda7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/arm_scmi/virtio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static bool virtio_chan_available(struct device *dev, int idx)
222222
return false;
223223
}
224224

225-
return vioch && !vioch->cinfo ? true : false;
225+
return vioch && !vioch->cinfo;
226226
}
227227

228228
static int virtio_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,

0 commit comments

Comments
 (0)