]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: st-nci: remove unnecessary assignment and label
authorwengjianfeng <wengjianfeng@yulong.com>
Mon, 24 May 2021 02:11:23 +0000 (10:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 20:12:51 +0000 (13:12 -0700)
commit83eb46a4790d4380907e19098f5549f5350be615
tree317e220a56ddf4f2735bd748b08ba0d470e12386
parent4685cc6d6ca2305c182ef9f35c961d10802a3868
nfc: st-nci: remove unnecessary assignment and label

In function st_nci_hci_network_init, the variable r is assigned then
goto exit label, which just return r, so we use return to replace it.
and exit label only used once at here, so we remove exit label.

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