From: Christophe Ricard Date: Tue, 31 Mar 2015 06:02:17 +0000 (+0200) Subject: NFC: st21nfca: Change st21nfca_get_iso14443_3_uid parameter name X-Git-Tag: firefly_0821_release~176^2~1974^2~44^2~10 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a8f686ec1041bd704748a2d919cea9652e8e943e;p=firefly-linux-kernel-4.4.55.git NFC: st21nfca: Change st21nfca_get_iso14443_3_uid parameter name st21nfca_get_iso14443_3_uid gate parameter name is incorrect and should be uid. Signed-off-by: Christophe Ricard Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/st21nfca/st21nfca.c b/drivers/nfc/st21nfca/st21nfca.c index ff70d2838b29..d251f7229c4e 100644 --- a/drivers/nfc/st21nfca/st21nfca.c +++ b/drivers/nfc/st21nfca/st21nfca.c @@ -572,7 +572,7 @@ exit: return r; } -static int st21nfca_get_iso14443_3_uid(struct nfc_hci_dev *hdev, u8 *gate, +static int st21nfca_get_iso14443_3_uid(struct nfc_hci_dev *hdev, u8 *uid, int *len) { int r; @@ -588,7 +588,7 @@ static int st21nfca_get_iso14443_3_uid(struct nfc_hci_dev *hdev, u8 *gate, goto exit; } - memcpy(gate, uid_skb->data, uid_skb->len); + memcpy(uid, uid_skb->data, uid_skb->len); *len = uid_skb->len; exit: kfree_skb(uid_skb);