diff options
Diffstat (limited to 'drivers/char/i8k.c')
-rw-r--r-- | drivers/char/i8k.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c index 6c4b3f986d0c..f3c3aaf4560e 100644 --- a/drivers/char/i8k.c +++ b/drivers/char/i8k.c | |||
@@ -99,7 +99,9 @@ struct smm_regs { | |||
99 | 99 | ||
100 | static inline char *i8k_get_dmi_data(int field) | 100 | static inline char *i8k_get_dmi_data(int field) |
101 | { | 101 | { |
102 | return dmi_get_system_info(field) ? : "N/A"; | 102 | char *dmi_data = dmi_get_system_info(field); |
103 | |||
104 | return dmi_data && *dmi_data ? dmi_data : "?"; | ||
103 | } | 105 | } |
104 | 106 | ||
105 | /* | 107 | /* |
@@ -396,7 +398,7 @@ static int i8k_proc_show(struct seq_file *seq, void *offset) | |||
396 | return seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n", | 398 | return seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n", |
397 | I8K_PROC_FMT, | 399 | I8K_PROC_FMT, |
398 | bios_version, | 400 | bios_version, |
399 | dmi_get_system_info(DMI_PRODUCT_SERIAL) ? : "N/A", | 401 | i8k_get_dmi_data(DMI_PRODUCT_SERIAL), |
400 | cpu_temp, | 402 | cpu_temp, |
401 | left_fan, right_fan, left_speed, right_speed, | 403 | left_fan, right_fan, left_speed, right_speed, |
402 | ac_power, fn_key); | 404 | ac_power, fn_key); |