diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-08 12:32:04 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 22:35:31 +0400 |
commit | 75474b6fd6660486d89226fc6f704853c76210e3 (patch) | |
tree | f5b9915f3cbc3d8d8873f17336617c84b3645838 /drivers/tty/serial | |
parent | 9fdedf5d16d04238833d1d45a8e303fdb86bee3a (diff) | |
download | linux-75474b6fd6660486d89226fc6f704853c76210e3.tar.xz |
serial: 8250_early: fix comparison of different types
Fix the following sparse warning:
drivers/tty/serial/8250/8250_early.c:196:26: error: incompatible types in comparison expression (different type sizes)
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r-- | drivers/tty/serial/8250/8250_early.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c index 946ddd2b3a54..c100d6343d50 100644 --- a/drivers/tty/serial/8250/8250_early.c +++ b/drivers/tty/serial/8250/8250_early.c @@ -194,7 +194,7 @@ static int __init parse_options(struct early_serial8250_device *device, options++; device->baud = simple_strtoul(options, NULL, 0); length = min(strcspn(options, " ") + 1, - sizeof(device->options)); + (size_t)(sizeof(device->options))); strlcpy(device->options, options, length); } else { device->baud = probe_baud(port); |