nfc: s3fwrn5: fix undefined parameter values in dev_err()
authorTang Bin <tangbin@cmss.chinamobile.com>
Wed, 28 Jul 2021 01:49:25 +0000 (09:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jul 2021 08:23:59 +0000 (09:23 +0100)
commit46573e3ab08fb041d5ba7bf7bf3215a1e724c78c
tree6ec6620bd0829336818dc79c1c6c2c6b6cb9bdf6
parent9d0279d043e87f119cfeb3200ad2c0e403765975
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>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/s3fwrn5/firmware.c