Re: [PATCH] cxgb3: Convert simple_strtoul to kstrtox

From: David Miller
Date: Sat Dec 05 2015 - 18:46:17 EST


From: LABBE Corentin <clabbe.montjoie@xxxxxxxxx>
Date: Fri, 4 Dec 2015 15:26:40 +0100

> the simple_strtoul function is obsolete. This patch replace it by
> kstrtox.
>
> Signed-off-by: LABBE Corentin <clabbe.montjoie@xxxxxxxxx>

Again, kstrtouint() provides a reasonable error code, therefore
when you do these conversions you should use that error code
rather than hardcoded -EWHATEVER.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/