OSDN Git Service

usb: gadget: rndis: don't duplicate the "i" variable
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Mon, 18 May 2015 15:40:03 +0000 (17:40 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 21 May 2015 21:29:05 +0000 (16:29 -0500)
commitc0d96af2e0427cc90b1f0d3c6a5294d90f93fcf4
tree9d6c9feffcd0759e0d2caba4f23d0160883ab6d6
parent868055fdd2399cbb0cb3fe0cd7b5047a3a77b8b9
usb: gadget: rndis: don't duplicate the "i" variable

If CONFIG_USB_GADGET_DEBUG_FILES is set then a block is opened and inside
it there is a local variable "i" which hides the "i" local to the
rndis_deregister(). Consequently, a random value is formatted
into the "name" buffer.

This patch removes the block-local i.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/rndis.c