diff options
author | Daniel Walter <dwalter@google.com> | 2014-05-27 01:59:32 +0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2014-05-28 23:47:16 +0400 |
commit | b2dfa048bae3b4afe1944237c1ee9525df00bb6f (patch) | |
tree | da24a40aece892980fad9aa2d4aec3aff9e61377 /arch/tile/kernel/signal.c | |
parent | ba159fd387a4d47bb41ddc3b06bfc28f33e8d936 (diff) | |
download | linux-b2dfa048bae3b4afe1944237c1ee9525df00bb6f.tar.xz |
replace strict_strto* call with kstrto*
remove obsolete calls to strict_strto* and replace them
with kstrto* calls accordingly.
Signed-off-by: Daniel Walter <dwalter@google.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/signal.c')
-rw-r--r-- | arch/tile/kernel/signal.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/tile/kernel/signal.c b/arch/tile/kernel/signal.c index 2d1dbf38a9ab..d1d026f01267 100644 --- a/arch/tile/kernel/signal.c +++ b/arch/tile/kernel/signal.c @@ -321,14 +321,13 @@ int show_unhandled_signals = 1; static int __init crashinfo(char *str) { - unsigned long val; const char *word; if (*str == '\0') - val = 2; - else if (*str != '=' || strict_strtoul(++str, 0, &val) != 0) + show_unhandled_signals = 2; + else if (*str != '=' || kstrtoint(++str, 0, &show_unhandled_signals) != 0) return 0; - show_unhandled_signals = val; + switch (show_unhandled_signals) { case 0: word = "No"; |