Commit 46573e3a authored by Tang Bin's avatar Tang Bin Committed by David S. Miller

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: a0302ff5 ("nfc: s3fwrn5: remove unnecessary label")
Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9d0279d0
...@@ -423,7 +423,7 @@ int s3fwrn5_fw_download(struct s3fwrn5_fw_info *fw_info) ...@@ -423,7 +423,7 @@ int s3fwrn5_fw_download(struct s3fwrn5_fw_info *fw_info)
if (IS_ERR(tfm)) { if (IS_ERR(tfm)) {
ret = PTR_ERR(tfm); ret = PTR_ERR(tfm);
dev_err(&fw_info->ndev->nfc_dev->dev, dev_err(&fw_info->ndev->nfc_dev->dev,
"Cannot allocate shash (code=%ld)\n", PTR_ERR(tfm)); "Cannot allocate shash (code=%pe)\n", tfm);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment