diff options
Diffstat (limited to 'drivers/sbus/char/envctrl.c')
-rw-r--r-- | drivers/sbus/char/envctrl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index e244cf3d9ec8..5609b602c54d 100644 --- a/drivers/sbus/char/envctrl.c +++ b/drivers/sbus/char/envctrl.c | |||
@@ -970,18 +970,13 @@ static struct i2c_child_t *envctrl_get_i2c_child(unsigned char mon_type) | |||
970 | static void envctrl_do_shutdown(void) | 970 | static void envctrl_do_shutdown(void) |
971 | { | 971 | { |
972 | static int inprog = 0; | 972 | static int inprog = 0; |
973 | int ret; | ||
974 | 973 | ||
975 | if (inprog != 0) | 974 | if (inprog != 0) |
976 | return; | 975 | return; |
977 | 976 | ||
978 | inprog = 1; | 977 | inprog = 1; |
979 | printk(KERN_CRIT "kenvctrld: WARNING: Shutting down the system now.\n"); | 978 | printk(KERN_CRIT "kenvctrld: WARNING: Shutting down the system now.\n"); |
980 | ret = orderly_poweroff(true); | 979 | orderly_poweroff(true); |
981 | if (ret < 0) { | ||
982 | printk(KERN_CRIT "kenvctrld: WARNING: system shutdown failed!\n"); | ||
983 | inprog = 0; /* unlikely to succeed, but we could try again */ | ||
984 | } | ||
985 | } | 980 | } |
986 | 981 | ||
987 | static struct task_struct *kenvctrld_task; | 982 | static struct task_struct *kenvctrld_task; |