]> git.baikalelectronics.ru Git - kernel.git/commit
nfc/fdp: remove unnecessary assignment and label
authorwengjianfeng <wengjianfeng@yulong.com>
Wed, 7 Apr 2021 03:16:38 +0000 (11:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:32:31 +0000 (14:32 -0700)
commit6698e162cd7ec6408032f1a49d534e8e5f596d1b
tree1923b8b3f414db3ea7e071b84d09b20400a06b1f
parent1e8539e4e650e9edfdcdd881a4720ae0908699e1
nfc/fdp: remove unnecessary assignment and label

In function fdp_nci_patch_otp and fdp_nci_patch_ram,many goto
out statements are used, and out label just return variable r.
in some places,just jump to the out label, and in other places,
assign a value to the variable r,then jump to the out label.
It is unnecessary, we just use return sentences to replace goto
sentences and delete out label.

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