aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkbuild test robot <[email protected]>2020-01-30 15:44:49 +0100
committerVinod Koul <[email protected]>2020-02-03 09:46:55 +0530
commita9113a90f5f0ff476a4ac2bf15861fa4358a3643 (patch)
tree2be6072e4f2753ee6715120303a5fff3f05f013e
parent474809a28e7b0671a5090de6e0db91f0e3821360 (diff)
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]>
-rw-r--r--drivers/dma/idxd/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/idxd/sysfs.c b/drivers/dma/idxd/sysfs.c
index 849c50ab939a..6d907fe150aa 100644
--- a/drivers/dma/idxd/sysfs.c
+++ b/drivers/dma/idxd/sysfs.c
@@ -66,7 +66,7 @@ static inline bool is_idxd_wq_dmaengine(struct idxd_wq *wq)
static inline bool is_idxd_wq_cdev(struct idxd_wq *wq)
{
- return wq->type == IDXD_WQT_USER ? true : false;
+ return wq->type == IDXD_WQT_USER;
}
static int idxd_config_bus_match(struct device *dev,