Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe198e34 authored by Markus Pargmann's avatar Markus Pargmann Committed by Felipe Balbi
Browse files

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: default avatarMarkus Pargmann <mpa@pengutronix.de>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 18d6b32f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))