crypto: starfive - Remove unneeded NULL checks
authorJia Jie Ho <jiajie.ho@starfivetech.com>
Mon, 4 Dec 2023 03:02:39 +0000 (11:02 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 19 Feb 2024 00:14:01 +0000 (09:14 +0900)
commit6029f9d9b0a1c7d6c0820cff8f522c15a62a378f
tree46d390dec55557213efde8cdbdeb4d1ef1a993c2
parentf5573e09b9653905ffca498cb9a15b590c6bb1f2
crypto: starfive - Remove unneeded NULL checks

NULL check before kfree_sensitive function is not needed.

Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311301702.LxswfETY-lkp@intel.com/
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from mainline commit 555e387047761eb909a0a1a8230efad3fa3e82ca)
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Change-Id: I2b868f089ac0bf9fa49bf2657f3fea98fa5c2cfa
drivers/crypto/starfive/jh7110-rsa.c