lkml.org 
[lkml]   [2015]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] cxgb3: Convert simple_strtoul to kstrtox
From
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.


\
 
 \ /
  Last update: 2015-12-06 01:01    [W:0.041 / U:0.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site