aboutsummaryrefslogtreecommitdiff
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorEldad Zack <[email protected]>2012-07-06 21:31:57 +0200
committerJ. Bruce Fields <[email protected]>2012-07-11 16:08:00 -0400
commitbbf43dc888833ac0539e437dbaeb28bfd4fbab9f (patch)
tree3e75d68f3811f438c451281e30ec5ad16b555c58 /lib/dynamic_debug.c
parentd9c2ede63c74048dfddbb129c59ac01176b0ab71 (diff)
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 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions