diff options
author | Markus Pargmann <mpa@pengutronix.de> | 2015-01-14 16:08:38 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-15 09:41:51 -0600 |
commit | fe198e34a44ce7f27e39c303d62a754129938194 (patch) | |
tree | 5409d88ac44925fbf8dac80ccd679fbcfbe52a45 /drivers/usb/musb/musb_debugfs.c | |
parent | 18d6b32fca3841f7cd9479b4024abd8a9b299281 (diff) | |
download | op-kernel-dev-fe198e34a44ce7f27e39c303d62a754129938194.zip op-kernel-dev-fe198e34a44ce7f27e39c303d62a754129938194.tar.gz |
usb: musb: debugfs: improve copy_from_user() argument
While the code is correct and functions well, it's still
a bit misleading to add the reference operator in from of
the buf argument.
This patch simply removes that operator in order to make
use of buf slightly better to the eyes.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_debugfs.c')
-rw-r--r-- | drivers/usb/musb/musb_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugfs.c index ad3701a..bb13e04 100644 --- a/drivers/usb/musb/musb_debugfs.c +++ b/drivers/usb/musb/musb_debugfs.c @@ -194,7 +194,7 @@ static ssize_t musb_test_mode_write(struct file *file, memset(buf, 0x00, sizeof(buf)); - if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) + if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count))) return -EFAULT; if (!strncmp(buf, "force host", 9)) |