summaryrefslogtreecommitdiffstats
path: root/drivers/nfc
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-29 12:40:18 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-29 12:28:03 +0100
commitc3e26b6dc1b4e3e8f57be4f004b1f2a410c5c468 (patch)
tree132d73cfcb9a2dc2286399f3af6a5569217e288d /drivers/nfc
parent6c755b1d251180fbdfe458591fc4dfe8704b0006 (diff)
downloadlinux-c3e26b6dc1b4e3e8f57be4f004b1f2a410c5c468.tar.bz2
nfc: fdp: use unsigned int as loop iterator
Loop iterators are simple integers, no point to optimize the size and use u8. It only raises the question whether the variable is used in some other context. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/fdp/fdp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c
index 650a140bea46..3f5fba922c4d 100644
--- a/drivers/nfc/fdp/fdp.c
+++ b/drivers/nfc/fdp/fdp.c
@@ -611,7 +611,8 @@ static int fdp_nci_core_get_config_rsp_packet(struct nci_dev *ndev,
struct fdp_nci_info *info = nci_get_drvdata(ndev);
struct device *dev = &info->phy->i2c_dev->dev;
struct nci_core_get_config_rsp *rsp = (void *) skb->data;
- u8 i, *p;
+ unsigned int i;
+ u8 *p;
if (rsp->status == NCI_STATUS_OK) {