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

Commit 9b680354 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Walleij
Browse files

pinctrl: pinconf: fix comparison of different types



Fix the following sparse warning:

drivers/pinctrl/pinconf.c:521:20: error: incompatible types in comparison expression (different type sizes)

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent bcd0c8c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -512,7 +512,7 @@ static int pinconf_dbg_config_write(struct file *file,
	int i;

	/* Get userspace string and assure termination */
	buf_size = min(count, (sizeof(buf)-1));
	buf_size = min(count, (size_t)(sizeof(buf)-1));
	if (copy_from_user(buf, user_buf, buf_size))
		return -EFAULT;
	buf[buf_size] = 0;