diff options
| author | Eldad Zack <[email protected]> | 2012-07-06 19:31:57 +0000 |
|---|---|---|
| committer | J. Bruce Fields <[email protected]> | 2012-07-11 20:08:00 +0000 |
| commit | bbf43dc888833ac0539e437dbaeb28bfd4fbab9f (patch) | |
| tree | 3e75d68f3811f438c451281e30ec5ad16b555c58 /net/sunrpc/cache.c | |
| parent | sunrpc/cache.h: fix coding style (diff) | |
| download | kernel-bbf43dc888833ac0539e437dbaeb28bfd4fbab9f.tar.gz kernel-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 <[email protected]> suggested, this patch also removes
the redundant temporary variable rv, since kstrtoint() will not write to
anint unless it's successful.
Cc: Joe Perches <[email protected]>
Signed-off-by: Eldad Zack <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'net/sunrpc/cache.c')
0 files changed, 0 insertions, 0 deletions
