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)
commit872fff333fb1a100a54dfb7fd20fb418bb7e1ba5
tree1923b8b3f414db3ea7e071b84d09b20400a06b1f
parentd567fd6e82faa61756810b9b0dfd9d0da11e960e
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