]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c3b7082072d81d53c9b94e9c8717c525f180794
treeafb869a602f8593279961311db1c6b61c2515ab0
parented3f6e136283917e8709c4a0a8faa4908c5ea3ea
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