]> 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)
commit0304765d3c589801e6820accca838d6601b02c7e
treeb7865498fe82af782693953fbc82092776f6f57c
parent7868e1237bfdfee7b89b057e345a1fed2830f355
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