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

Commit c584282b authored by Vincent Siles's avatar Vincent Siles Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: Function calls too long



Splitting function calls across multiple lines to fit in the 80
characters limit

Signed-off-by: default avatarVincent Siles <vincent.siles@provenrun.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 896fce0c
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ static ssize_t wilc_debug_level_read(struct file *file, char __user *userbuf,
	if (*ppos > 0)
		return 0;

	res = scnprintf(buf, sizeof(buf), "Debug Level: %x\n", atomic_read(&WILC_DEBUG_LEVEL));
	res = scnprintf(buf, sizeof(buf), "Debug Level: %x\n",
			atomic_read(&WILC_DEBUG_LEVEL));

	return simple_read_from_buffer(userbuf, count, ppos, buf, res);
}
@@ -62,7 +63,8 @@ static ssize_t wilc_debug_level_write(struct file *filp,
		return ret;

	if (flag > DBG_LEVEL_ALL) {
		pr_info("%s, value (0x%08x) is out of range, stay previous flag (0x%08x)\n", __func__, flag, atomic_read(&WILC_DEBUG_LEVEL));
		pr_info("%s, value (0x%08x) is out of range, stay previous flag (0x%08x)\n",
			__func__, flag, atomic_read(&WILC_DEBUG_LEVEL));
		return -EINVAL;
	}