OSDN Git Service

nfc: mrvl: reduce the scope of local variables
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 2 Jun 2021 11:20:11 +0000 (13:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jun 2021 20:59:08 +0000 (13:59 -0700)
commit2c95e6c7e558f20d309c1385a8bf3ed9da48491e
treeb7865498fe82af782693953fbc82092776f6f57c
parenta58224040f2df8381146e7cfba9d657d5683ded1
nfc: mrvl: reduce the scope of local variables

In two places the 'ep_desc' and 'skb' local variables are used only
within if() or for() block, so they scope can be reduced which makes the
entire code slightly easier to follow.  No functional change.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nfcmrvl/usb.c