]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: pn533: remove redundant assignment
authorwengjianfeng <wengjianfeng@yulong.com>
Mon, 12 Apr 2021 02:20:06 +0000 (10:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Apr 2021 20:23:03 +0000 (13:23 -0700)
commit4506efedf396795bfd9426fe7e4d373690c6a1d2
treea52dd32aa2cee8b8b6d92819cec29f9eb507f82a
parentf96b44ad28c1c4c3ca35f5d29b99bb71361b6a78
nfc: pn533: remove redundant assignment

In many places,first assign a value to a variable and then return
the variable. which is redundant, we should directly return the value.
in pn533_rf_field funciton,return rc also in the if statement, so we
use return 0 to replace the last return rc.

Signed-off-by: wengjianfeng <wengjianfeng@yulong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/pn533/i2c.c
drivers/nfc/pn533/pn533.c