nfc: s3fwrn5: fix undefined parameter values in dev_err()
authorTang Bin <tangbin@cmss.chinamobile.com>
Tue, 27 Jul 2021 12:25:06 +0000 (20:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 13:02:11 +0000 (14:02 +0100)
commit801e541c79bbc63af852ca21b713ba87cc97c6ad
treeafb869a602f8593279961311db1c6b61c2515ab0
parentc7c9d2102c9c098916ab9e0ab248006107d00d6c
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>
drivers/nfc/s3fwrn5/firmware.c