Skip to content

Commit a9113a9

Browse files
intel-lab-lkpvinodkoul
authored andcommitted
dmaengine: idxd: fix boolconv.cocci warnings
Remove unneeded conversion to bool Generated by: scripts/coccinelle/misc/boolconv.cocci CC: Dave Jiang <[email protected]> Signed-off-by: kbuild test robot <[email protected]> Signed-off-by: Julia Lawall <[email protected]> Acked-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/alpine.DEB.2.21.2001301543150.7476@hadrien Signed-off-by: Vinod Koul <[email protected]>
1 parent 474809a commit a9113a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/idxd/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static inline bool is_idxd_wq_dmaengine(struct idxd_wq *wq)
6666

6767
static inline bool is_idxd_wq_cdev(struct idxd_wq *wq)
6868
{
69-
return wq->type == IDXD_WQT_USER ? true : false;
69+
return wq->type == IDXD_WQT_USER;
7070
}
7171

7272
static int idxd_config_bus_match(struct device *dev,

0 commit comments

Comments
 (0)