projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
868055f
)
usb: gadget: rndis: don't duplicate the "i" variable
author
Andrzej Pietrasiewicz
<
[email protected]
>
Mon, 18 May 2015 15:40:03 +0000
(17:40 +0200)
committer
Felipe Balbi
<
[email protected]
>
Thu, 21 May 2015 21:29:05 +0000
(16:29 -0500)
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 <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
drivers/usb/gadget/function/rndis.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/rndis.c
b/drivers/usb/gadget/function/rndis.c
index f626a63bbdba0e1d9047ea4a3a5a0ff0027de593..aac59c03a732dc00db2f1f83a7657f0b39bcee9b 100644
(file)
--- 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);