diff mbox

crypto: mxs-dcp: fix type of ret for wait_for_completion_timeout

Message ID 1423296581-10563-1-git-send-email-hofrat@osadl.org (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show

Commit Message

Nicholas Mc Guire Feb. 7, 2015, 8:09 a.m. UTC
return type of wait_for_completion_timeout is unsigned long not int, this
patch changes the type of ret from int to unsigned long.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---

As ret is only used here for wait_for_completion_timeout it can simply
be changed to the appropriate type.

Patch was only compile tested with mxs_defconfig 
(implies CONFIG_CRYPTO_DEV_MXS_DCP=y)

Patch is against 3.19.0-rc7 (localversion-next is -next-20150204)

 drivers/crypto/mxs-dcp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Herbert Xu Feb. 28, 2015, 10:33 a.m. UTC | #1
On Sat, Feb 07, 2015 at 03:09:41AM -0500, Nicholas Mc Guire wrote:
> return type of wait_for_completion_timeout is unsigned long not int, this
> patch changes the type of ret from int to unsigned long.
> 
> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>

All four patches applied.
diff mbox

Patch

diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c
index 829d639..59ed54e 100644
--- a/drivers/crypto/mxs-dcp.c
+++ b/drivers/crypto/mxs-dcp.c
@@ -153,7 +153,7 @@  static int mxs_dcp_start_dma(struct dcp_async_ctx *actx)
 	struct dcp *sdcp = global_sdcp;
 	const int chan = actx->chan;
 	uint32_t stat;
-	int ret;
+	unsigned long ret;
 	struct dcp_dma_desc *desc = &sdcp->coh->desc[actx->chan];
 
 	dma_addr_t desc_phys = dma_map_single(sdcp->dev, desc, sizeof(*desc),