crypto: caam - fix type mismatch warning
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Oct 2016 21:29:10 +0000 (23:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Nov 2016 00:37:12 +0000 (08:37 +0800)
commitd69985a07692cbe67c50fa0e0ed8ffbd25cedd71
tree0aeda78436684c676ff38a4556cf0b2bfa11f0d3
parent9ae811f28070d6f63a675d7482bd1fc140a3a7c6
crypto: caam - fix type mismatch warning

Building the caam driver on arm64 produces a harmless warning:

drivers/crypto/caam/caamalg.c:140:139: warning: comparison of distinct pointer types lacks a cast

We can use min_t to tell the compiler which type we want it to use
here.

Fixes: 5ecf8ef9103c ("crypto: caam - fix sg dump")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c