projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ffd015
)
tee: optee: smc: remove unnecessary NULL check before release_firmware()
author
Chen Ni
<nichen@iscas.ac.cn>
Thu, 10 Apr 2025 07:56:35 +0000
(15:56 +0800)
committer
Jens Wiklander
<jens.wiklander@linaro.org>
Fri, 25 Apr 2025 12:43:42 +0000
(14:43 +0200)
release_firmware() checks for NULL pointers internally.
Remove unneeded NULL check for fmw here.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/smc_abi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tee/optee/smc_abi.c
b/drivers/tee/optee/smc_abi.c
index f0c3ac1103bb5f6de0f2bb79ab24622cd0174a7c..26f8f7bbbe56f258317ee2ff36046eb92ab68cf7 100644
(file)
--- a/
drivers/tee/optee/smc_abi.c
+++ b/
drivers/tee/optee/smc_abi.c
@@
-1551,8
+1551,7
@@
fw_load:
data_pa_high, data_pa_low, 0, 0, 0, &res);
if (!rc)
rc = res.a0;
- if (fw)
- release_firmware(fw);
+ release_firmware(fw);
kfree(data_buf);
if (!rc) {