summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/s3fwrn5/firmware.c
diff options
context:
space:
mode:
authorTang Bin <tangbin@cmss.chinamobile.com>2021-07-27 14:25:06 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-27 15:02:11 +0200
commit801e541c79bbc63af852ca21b713ba87cc97c6ad (patch)
treeafb869a602f8593279961311db1c6b61c2515ab0 /drivers/nfc/s3fwrn5/firmware.c
parentnet: llc: fix skb_over_panic (diff)
downloadlinux-801e541c79bbc63af852ca21b713ba87cc97c6ad.tar.xz
linux-801e541c79bbc63af852ca21b713ba87cc97c6ad.zip
nfc: s3fwrn5: fix undefined parameter values in dev_err()
In the function s3fwrn5_fw_download(), the 'ret' is not assigned, so the correct value should be given in dev_err function. Fixes: a0302ff5906a ("nfc: s3fwrn5: remove unnecessary label") Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/s3fwrn5/firmware.c')
-rw-r--r--drivers/nfc/s3fwrn5/firmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/s3fwrn5/firmware.c b/drivers/nfc/s3fwrn5/firmware.c
index eb5d7a5beac7..1340fab9565e 100644
--- a/drivers/nfc/s3fwrn5/firmware.c
+++ b/drivers/nfc/s3fwrn5/firmware.c
@@ -423,7 +423,7 @@ int s3fwrn5_fw_download(struct s3fwrn5_fw_info *fw_info)
if (IS_ERR(tfm)) {
ret = PTR_ERR(tfm);
dev_err(&fw_info->ndev->nfc_dev->dev,
- "Cannot allocate shash (code=%d)\n", ret);
+ "Cannot allocate shash (code=%ld)\n", PTR_ERR(tfm));
goto out;
}