]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: st-nci: Remove unnecessary variable
authorwengjianfeng <wengjianfeng@yulong.com>
Mon, 8 Feb 2021 02:17:32 +0000 (10:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Feb 2021 22:56:20 +0000 (14:56 -0800)
commit6ee21e05e24f29093f263e732618b5254b4cbcdb
tree826f440c41cf7508fa6232baeac57cc0e9d0def7
parent170d70bd8abae972c6ee249bf743bf7e7eab9285
nfc: st-nci: Remove unnecessary variable

The variable r is defined at the beginning and initialized
to 0 until the function returns r, and the variable r is
not reassigned.Therefore, we do not need to define the
variable r, just return 0 directly at the end of the function.

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