Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1284662

Re: [PATCH] cxgb3: Convert simple_strtoul to kstrtox

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] cxgb3: Convert simple_strtoul to kstrtox
Date 2015-12-06 00:50 +0100
Message-ID <qCuKu-7Bt-19@gated-at.bofh.it> (permalink)
References <qBZx0-3Oz-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] cxgb3: Convert simple_strtoul to kstrtox LABBE Corentin <clabbe.montjoie@gmail.com> - 2015-12-04 15:30 +0100
  Re: [PATCH] cxgb3: Convert simple_strtoul to kstrtox David Miller <davem@davemloft.net> - 2015-12-06 00:50 +0100

csiph-web