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
Unified · Split
| @@ -222,7 +222,7 @@ static bool virtio_chan_available(struct device *dev, int idx) · 221 unmodified lines | ||
| 222 | 222 | return false; |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | − return vioch && !vioch->cinfo ? true : false; | |
| 225 | + return vioch && !vioch->cinfo; | |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | 228 | static int virtio_chan_setup(struct scmi_chan_info *cinfo, struct device *dev, |