crypto: dh - Remove pointless checks for NULL 'p' and 'g'
authorEric Biggers <ebiggers@google.com>
Mon, 6 Nov 2017 02:30:48 +0000 (18:30 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 Nov 2017 11:20:22 +0000 (19:20 +0800)
commitced6a58638432c9f731184f908208d539725ba82
treee723e433ade388f6d6cb4e79b450f35d64aa5a5b
parent5829cc8da94f500b0c1fe82688d89fd36a1a9a41
crypto: dh - Remove pointless checks for NULL 'p' and 'g'

Neither 'p' nor 'g' can be NULL, as they were unpacked using
crypto_dh_decode_key().  And it makes no sense for them to be optional.
So remove the NULL checks that were copy-and-pasted into both modules.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/dh.c
drivers/crypto/qat/qat_common/qat_asym_algs.c