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>
This commit is contained in:
parent
c85b3bb7b6
commit
796c9015ab
@ -276,7 +276,6 @@ static int st_nci_hci_apdu_reader_event_received(struct nci_dev *ndev,
|
||||
u8 event,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
int r = 0;
|
||||
struct st_nci_info *info = nci_get_drvdata(ndev);
|
||||
|
||||
pr_debug("apdu reader gate event: %x\n", event);
|
||||
@ -298,7 +297,7 @@ static int st_nci_hci_apdu_reader_event_received(struct nci_dev *ndev,
|
||||
}
|
||||
|
||||
kfree_skb(skb);
|
||||
return r;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user