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>
This commit is contained in:
Yushan Zhou 2022-11-22 15:49:00 +08:00 committed by Herbert Xu
parent 5b11d1a360
commit bd71e0dced
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}