diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-06 09:10:20 (GMT) |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-08-07 20:30:32 (GMT) |
commit | 9b6803542e1bd544289d605c84233a0e0a46ac7d (patch) | |
tree | 37d25a279ac8cf147e247468c7dc5bceba84ae4d /drivers/pinctrl/pinconf.c | |
parent | bcd0c8c2d4daf13a41880a82a685de41e6e193cc (diff) | |
download | linux-9b6803542e1bd544289d605c84233a0e0a46ac7d.tar.xz |
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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinconf.c')
-rw-r--r-- | drivers/pinctrl/pinconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c index d16ef87..8da2d6d 100644 --- a/drivers/pinctrl/pinconf.c +++ b/drivers/pinctrl/pinconf.c @@ -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; |