nfc: fdp: use unsigned int as loop iterator
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 29 Jul 2021 10:40:18 +0000 (12:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jul 2021 11:28:03 +0000 (12:28 +0100)
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>
drivers/nfc/fdp/fdp.c

index 650a140bea46d38bc801ab410cab1de54a3ec00c..3f5fba922c4d46f6f604f51b0c7867185722a344 100644 (file)
@@ -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) {