summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2015-05-18 18:40:03 +0300
committerFelipe Balbi <balbi@ti.com>2015-05-22 00:29:05 +0300
commitc0d96af2e0427cc90b1f0d3c6a5294d90f93fcf4 (patch)
tree9d6c9feffcd0759e0d2caba4f23d0160883ab6d6 /drivers/usb/gadget
parent868055fdd2399cbb0cb3fe0cd7b5047a3a77b8b9 (diff)
downloadlinux-c0d96af2e0427cc90b1f0d3c6a5294d90f93fcf4.tar.xz
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>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/function/rndis.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/rndis.c b/drivers/usb/gadget/function/rndis.c
index f626a63bbdba..aac59c03a732 100644
--- a/drivers/usb/gadget/function/rndis.c
+++ b/drivers/usb/gadget/function/rndis.c
@@ -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);