]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: jitterentropy - Delete unnecessary checks before the function call "kzfree"
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 23 Jun 2015 20:30:21 +0000 (22:30 +0200)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 13 Sep 2017 21:21:35 +0000 (14:21 -0700)
commit5add9ad11d671960b6094c1ca6b5b752eb1286bc
treef2a53354bbc4ae2234d64ec5f86c93ad5bb71246
parent9cbd32f3a1fbee8d3dd528f287de097e0496ba0f
crypto: jitterentropy - Delete unnecessary checks before the function call "kzfree"

Orabug: 26330509

The kzfree() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit cea0a3c305fa348cfad3bae4a226c241720daf55)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
crypto/jitterentropy.c