]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: vmx - remove unnecessary check
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>
Fri, 16 Jun 2017 08:39:48 +0000 (11:39 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Jun 2017 03:21:49 +0000 (11:21 +0800)
commit4ce196e25828e980293116eb113e54be00b09d9b
tree11dc1349b0c9e2788c5282f7fa7227b0c39a19d2
parent8082230de9b106b8a02f2057d4c301ccb9bda53f
crypto: vmx - remove unnecessary check

You can't reach init() if parent alg_name is invalid. Moreover,
cypto_alloc_base() will return ENOENT if alg_name is NULL.
Found while grasping the fallback mechanism.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/vmx/aes.c
drivers/crypto/vmx/aes_cbc.c
drivers/crypto/vmx/aes_ctr.c
drivers/crypto/vmx/aes_xts.c