summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/marvell
diff options
context:
space:
mode:
authorYushan Zhou <katrinzhou@tencent.com>2022-11-22 08:49:00 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-02 11:12:39 +0100
commitbd71e0dced921e00599052b445f9a9f7916a5452 (patch)
tree77aa9035932ecc7892ee34f74fefded1e3f133bd /drivers/crypto/marvell
parentcrypto: rsa-pkcs1pad - Use helper to set reqsize (diff)
downloadlinux-bd71e0dced921e00599052b445f9a9f7916a5452.tar.xz
linux-bd71e0dced921e00599052b445f9a9f7916a5452.zip
crypto: marvell/octeontx - remove redundant NULL check
release_firmware() checks whether firmware pointer is NULL. Remove the redundant NULL check in release_tar_archive(). Signed-off-by: Yushan Zhou <katrinzhou@tencent.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
-rw-r--r--drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
index df9c2b8747e6..c4250e5fcf8f 100644
--- a/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
+++ b/drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
@@ -345,8 +345,7 @@ static void release_tar_archive(struct tar_arch_info_t *tar_arch)
kfree(curr);
}
- if (tar_arch->fw)
- release_firmware(tar_arch->fw);
+ release_firmware(tar_arch->fw);
kfree(tar_arch);
}