aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2015-04-05 18:51:17 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2015-04-05 18:51:17 -0400
commit2b591257d97550e575f761e83c607d99b0f86899 (patch)
treeca723edbbd2e0adabde8d3751c5f5312605ef964
parent9dbe776338e7f97483452cc00adf0d527d6900dd (diff)
NFC: nxp-nxi: Remove useless fw pointer check
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>
-rw-r--r--drivers/nfc/nxp-nci/firmware.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nfc/nxp-nci/firmware.c b/drivers/nfc/nxp-nci/firmware.c
index 08573f97975f..74f98209ea82 100644
--- 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)
245 fw_info->frame_size = 0; 245 fw_info->frame_size = 0;
246 fw_info->cmd_result = 0; 246 fw_info->cmd_result = 0;
247 247
248 if (fw_info->fw) 248 schedule_work(&fw_info->work);
249 schedule_work(&fw_info->work);
250 249
251fw_download_exit: 250fw_download_exit:
252 mutex_unlock(&info->info_lock); 251 mutex_unlock(&info->info_lock);