1
0
mirror of https://github.com/torvalds/linux.git synced 2024-12-20 01:52:13 +00:00

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>
This commit is contained in:
Andrzej Pietrasiewicz 2015-05-18 17:40:03 +02:00 committed by Felipe Balbi
parent 868055fdd2
commit c0d96af2e0

View File

@ -934,7 +934,6 @@ void rndis_deregister(struct rndis_params *params)
#ifdef CONFIG_USB_GADGET_DEBUG_FILES
{
u8 i;
char name[20];
sprintf(name, NAME_TEMPLATE, i);