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:
Родитель
5b11d1a360
Коммит
bd71e0dced
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче