linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dmaengine: idxd: fix boolconv.cocci warnings
@ 2020-01-30 14:44 Julia Lawall
  2020-01-30 16:13 ` Dave Jiang
  2020-02-03  4:17 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Julia Lawall @ 2020-01-30 14:44 UTC (permalink / raw)
  To: Dave Jiang
  Cc: kbuild-all, linux-kernel, Vinod Koul, Dan Williams, dmaengine,
	linux-kernel

From: kbuild test robot <lkp@intel.com>

Remove unneeded conversion to bool

Generated by: scripts/coccinelle/misc/boolconv.cocci

CC: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   39bed42de2e7d74686a2d5a45638d6a5d7e7d473
commit: 42d279f9137ab7d5503836baec2739284b278d8f dmaengine: idxd: add char driver to expose submission portal to userland
:::::: branch date: 11 hours ago
:::::: commit date: 6 days ago

Please take the patch only if it's a positive warning. Thanks!

 sysfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/dma/idxd/sysfs.c
+++ b/drivers/dma/idxd/sysfs.c
@@ -66,7 +66,7 @@ static inline bool is_idxd_wq_dmaengine(

 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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dmaengine: idxd: fix boolconv.cocci warnings
  2020-01-30 14:44 [PATCH] dmaengine: idxd: fix boolconv.cocci warnings Julia Lawall
@ 2020-01-30 16:13 ` Dave Jiang
  2020-02-03  4:17 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Jiang @ 2020-01-30 16:13 UTC (permalink / raw)
  To: Julia Lawall
  Cc: kbuild-all, linux-kernel, Vinod Koul, Dan Williams, dmaengine



On 1/30/20 7:44 AM, Julia Lawall wrote:
> From: kbuild test robot <lkp@intel.com>
> 
> Remove unneeded conversion to bool
> 
> Generated by: scripts/coccinelle/misc/boolconv.cocci
> 
> CC: Dave Jiang <dave.jiang@intel.com>
> Signed-off-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@inria.fr>

Acked-by: Dave Jiang <dave.jiang@intel.com>

> ---
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   39bed42de2e7d74686a2d5a45638d6a5d7e7d473
> commit: 42d279f9137ab7d5503836baec2739284b278d8f dmaengine: idxd: add char driver to expose submission portal to userland
> :::::: branch date: 11 hours ago
> :::::: commit date: 6 days ago
> 
> Please take the patch only if it's a positive warning. Thanks!
> 
>   sysfs.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- a/drivers/dma/idxd/sysfs.c
> +++ b/drivers/dma/idxd/sysfs.c
> @@ -66,7 +66,7 @@ static inline bool is_idxd_wq_dmaengine(
> 
>   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,
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dmaengine: idxd: fix boolconv.cocci warnings
  2020-01-30 14:44 [PATCH] dmaengine: idxd: fix boolconv.cocci warnings Julia Lawall
  2020-01-30 16:13 ` Dave Jiang
@ 2020-02-03  4:17 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2020-02-03  4:17 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Dave Jiang, kbuild-all, linux-kernel, Dan Williams, dmaengine

On 30-01-20, 15:44, Julia Lawall wrote:
> From: kbuild test robot <lkp@intel.com>
> 
> Remove unneeded conversion to bool
> 
> Generated by: scripts/coccinelle/misc/boolconv.cocci

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-03  4:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 14:44 [PATCH] dmaengine: idxd: fix boolconv.cocci warnings Julia Lawall
2020-01-30 16:13 ` Dave Jiang
2020-02-03  4:17 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).