Messages in this thread | | | Date | Sat, 05 Dec 2015 18:45:20 -0500 (EST) | Subject | Re: [PATCH] cxgb3: Convert simple_strtoul to kstrtox | From | David Miller <> |
| |
From: LABBE Corentin <clabbe.montjoie@gmail.com> 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@gmail.com>
Again, kstrtouint() provides a reasonable error code, therefore when you do these conversions you should use that error code rather than hardcoded -EWHATEVER.
| |