]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: st-nci: remove unnecessary label
authorwengjianfeng <wengjianfeng@yulong.com>
Tue, 13 Apr 2021 09:45:30 +0000 (17:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2021 21:50:57 +0000 (14:50 -0700)
commit4ea9097fd28fd1b569299e35f04e7b0d9ecd32cd
treebf101406db903668f868e2b80e01e51280767c16
parenta4ff45fc4ddcb5d79c188f904bc76c6c8f95d71a
nfc: st-nci: remove unnecessary label

in st_nci_spi_write function, first assign a value to a variable then
goto exit label. return statement just follow the label and exit label
just used once, so we should directly return and remove exit label.

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