dmaengine Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] dmaengine: qcom_hidma: use true,false for bool variable
@ 2020-05-04 11:34 Jason Yan
  2020-05-04 20:02 ` Sinan Kaya
  2020-05-13 11:32 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Yan @ 2020-05-04 11:34 UTC (permalink / raw)
  To: okaya, agross, bjorn.andersson, vkoul, dan.j.williams,
	linux-arm-kernel, linux-arm-msm, dmaengine, linux-kernel
  Cc: Jason Yan

Fix the following coccicheck warning:

drivers/dma/qcom/hidma.c:553:1-17: WARNING: Assignment of 0/1 to bool
variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/dma/qcom/hidma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c
index 87490e125bc3..0a6d3ea08c78 100644
--- a/drivers/dma/qcom/hidma.c
+++ b/drivers/dma/qcom/hidma.c
@@ -550,7 +550,7 @@ static void hidma_free_chan_resources(struct dma_chan *dmach)
 		kfree(mdesc);
 	}
 
-	mchan->allocated = 0;
+	mchan->allocated = false;
 	spin_unlock_irqrestore(&mchan->lock, irqflags);
 }
 
-- 
2.21.1


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

* Re: [PATCH] dmaengine: qcom_hidma: use true,false for bool variable
  2020-05-04 11:34 [PATCH] dmaengine: qcom_hidma: use true,false for bool variable Jason Yan
@ 2020-05-04 20:02 ` Sinan Kaya
  2020-05-13 11:32 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Sinan Kaya @ 2020-05-04 20:02 UTC (permalink / raw)
  To: Jason Yan, agross, bjorn.andersson, vkoul, dan.j.williams,
	linux-arm-kernel, linux-arm-msm, dmaengine, linux-kernel

On 5/4/2020 7:34 AM, Jason Yan wrote:
> Fix the following coccicheck warning:
> 
> drivers/dma/qcom/hidma.c:553:1-17: WARNING: Assignment of 0/1 to bool
> variable
> 
> Signed-off-by: Jason Yan <yanaijie@huawei.com>
> ---
>  drivers/dma/qcom/hidma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c
> index 87490e125bc3..0a6d3ea08c78 100644
> --- a/drivers/dma/qcom/hidma.c
> +++ b/drivers/dma/qcom/hidma.c
> @@ -550,7 +550,7 @@ static void hidma_free_chan_resources(struct dma_chan *dmach)
>  		kfree(mdesc);
>  	}
>  
> -	mchan->allocated = 0;
> +	mchan->allocated = false;
>  	spin_unlock_irqrestore(&mchan->lock, irqflags);
>  }

Acked By: Sinan Kaya <okaya@kernel.org>


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

* Re: [PATCH] dmaengine: qcom_hidma: use true,false for bool variable
  2020-05-04 11:34 [PATCH] dmaengine: qcom_hidma: use true,false for bool variable Jason Yan
  2020-05-04 20:02 ` Sinan Kaya
@ 2020-05-13 11:32 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2020-05-13 11:32 UTC (permalink / raw)
  To: Jason Yan
  Cc: okaya, agross, bjorn.andersson, dan.j.williams, linux-arm-kernel,
	linux-arm-msm, dmaengine, linux-kernel

On 04-05-20, 19:34, Jason Yan wrote:
> Fix the following coccicheck warning:
> 
> drivers/dma/qcom/hidma.c:553:1-17: WARNING: Assignment of 0/1 to bool
> variable

Applied, thanks

-- 
~Vinod

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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-04 11:34 [PATCH] dmaengine: qcom_hidma: use true,false for bool variable Jason Yan
2020-05-04 20:02 ` Sinan Kaya
2020-05-13 11:32 ` Vinod Koul

dmaengine Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dmaengine/0 dmaengine/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dmaengine dmaengine/ https://lore.kernel.org/dmaengine \
		dmaengine@vger.kernel.org
	public-inbox-index dmaengine

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.dmaengine


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git