mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 00:43:08 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user