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:
df6738d
)
usb: gadget: f_fs: Fix loop variable
author
Mario Schuknecht
<mario.schuknecht@dresearch-fe.de>
Mon, 26 Jan 2015 19:40:21 +0000
(20:40 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 27 Jan 2015 15:34:59 +0000
(09:34 -0600)
Use if-loop variable 'epfile' instead of start variable 'epfiles'. Now the
correct endpoint file name is stored.
Signed-off-by: Mario Schuknecht <mario.schuknecht@dresearch-fe.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_fs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/f_fs.c
b/drivers/usb/gadget/function/f_fs.c
index e78a2c6af8d3b78ca8f2a656a25f22cea50b0ef4..14e44d7083a14a45fc284c7e562413e038748b55 100644
(file)
--- a/
drivers/usb/gadget/function/f_fs.c
+++ b/
drivers/usb/gadget/function/f_fs.c
@@
-1611,10
+1611,10
@@
static int ffs_epfiles_create(struct ffs_data *ffs)
mutex_init(&epfile->mutex);
init_waitqueue_head(&epfile->wait);
if (ffs->user_flags & FUNCTIONFS_VIRTUAL_ADDR)
- sprintf(epfile
s
->name, "ep%02x", ffs->eps_addrmap[i]);
+ sprintf(epfile->name, "ep%02x", ffs->eps_addrmap[i]);
else
- sprintf(epfile
s
->name, "ep%u", i);
- epfile->dentry = ffs_sb_create_file(ffs->sb, epfile
s
->name,
+ sprintf(epfile->name, "ep%u", i);
+ epfile->dentry = ffs_sb_create_file(ffs->sb, epfile->name,
epfile,
&ffs_epfile_operations);
if (unlikely(!epfile->dentry)) {