]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93134a941e6eb93462a43f5789ab13027fda7392
treeb7865498fe82af782693953fbc82092776f6f57c
parentd618101bc85c8c96b81a9d0dd53351880416ff69
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