Skip to content

Commit

Permalink
NFC: nxp-nxi: Remove useless fw pointer check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Ortiz committed Apr 5, 2015
1 parent 9dbe776 commit 2b59125
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/nfc/nxp-nci/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2b59125

Please sign in to comment.