projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dbe776
)
NFC: nxp-nxi: Remove useless fw pointer check
author
Samuel Ortiz
<sameo@linux.intel.com>
Sun, 5 Apr 2015 22:51:17 +0000
(
00:51
+0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sun, 5 Apr 2015 22:51:17 +0000
(
00:51
+0200)
It request_firmware returns 0, the request succeeded and the
firmware pointer is valid. No need to check for it.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nxp-nci/firmware.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nfc/nxp-nci/firmware.c
b/drivers/nfc/nxp-nci/firmware.c
index 08573f97975f2d2a715d1a05c501a8faa2a0a4bf..74f98209ea82b73ad809ccb0991f73e9456393eb 100644
(file)
--- a/
drivers/nfc/nxp-nci/firmware.c
+++ b/
drivers/nfc/nxp-nci/firmware.c
@@
-245,8
+245,7
@@
int nxp_nci_fw_download(struct nci_dev *ndev, const char *firmware_name)
fw_info->frame_size = 0;
fw_info->cmd_result = 0;
- if (fw_info->fw)
- schedule_work(&fw_info->work);
+ schedule_work(&fw_info->work);
fw_download_exit:
mutex_unlock(&info->info_lock);