lkml.org 
[lkml]   [2005]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 8250_early.c passing 0 instead of NULL
Fix sparse warning about passing `0` to 
simple_strtoul()

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
--- linux-2.6.14-rc4/drivers/serial/8250_early.c 2005-06-17 20:48:29.000000000 +0100
+++ linux-2.6.14-rc4-bjd1/drivers/serial/8250_early.c 2005-10-12 00:01:02.000000000 +0100
@@ -164,7 +164,7 @@ static int __init parse_options(struct e

if ((options = strchr(options, ','))) {
options++;
- device->baud = simple_strtoul(options, 0, 0);
+ device->baud = simple_strtoul(options, NULL, 0);
length = min(strcspn(options, " "), sizeof(device->options));
strncpy(device->options, options, length);
} else {
\
 
 \ /
  Last update: 2005-10-12 01:05    [W:0.012 / U:37.532 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site