diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2012-07-06 21:31:57 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-07-11 22:08:00 +0200 |
commit | bbf43dc888833ac0539e437dbaeb28bfd4fbab9f (patch) | |
tree | 3e75d68f3811f438c451281e30ec5ad16b555c58 /net | |
parent | sunrpc/cache.h: fix coding style (diff) | |
download | linux-bbf43dc888833ac0539e437dbaeb28bfd4fbab9f.tar.xz linux-bbf43dc888833ac0539e437dbaeb28bfd4fbab9f.zip |
sunrpc/cache.h: replace simple_strtoul
This patch replaces the usage of simple_strtoul with kstrtoint in
get_int(), since the simple_str* family doesn't account for overflow
and is deprecated.
Also, in this specific case, the long from strtol is silently converted
to an int by the caller.
As Joe Perches <joe@perches.com> suggested, this patch also removes
the redundant temporary variable rv, since kstrtoint() will not write to
anint unless it's successful.
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions