History

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

kernel test robot committed 5 years ago

Commit d4fda7e1 parent 1e7cbfa1 file · +1 −1Browse files

Unified · Split

drivers/firmware/arm_scmi/virtio.c+1−1
@@ -222,7 +222,7 @@ static bool virtio_chan_available(struct device *dev, int idx) · 221 unmodified lines
222 return false;222 return false;
223 }223 }
224 224
225 return vioch && !vioch->cinfo ? true : false;225 return vioch && !vioch->cinfo;
226}226}
227 227
228static int virtio_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,228static int virtio_chan_setup(struct scmi_chan_info *cinfo, struct device *dev,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t