diff options
author | Joe Perches <joe@perches.com> | 2015-02-21 21:53:47 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-25 10:12:28 -0400 |
commit | 3a267d3b22f56bf5ba379c20604fd28409119698 (patch) | |
tree | bfe4d3ddfe67e0ab24ee2afe898f93cceca91193 | |
parent | 0a56c0e1e7ad4dc3721e96c499f3074cb6867cfe (diff) |
i8k: Remove use of seq_printf return value
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.
See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to
seq_has_overflowed() and make public")
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/char/i8k.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/char/i8k.c b/drivers/char/i8k.c index 24cc4ed9a780..a43048b5b05f 100644 --- a/drivers/char/i8k.c +++ b/drivers/char/i8k.c | |||
@@ -510,13 +510,15 @@ static int i8k_proc_show(struct seq_file *seq, void *offset) | |||
510 | * 9) AC power | 510 | * 9) AC power |
511 | * 10) Fn Key status | 511 | * 10) Fn Key status |
512 | */ | 512 | */ |
513 | return seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n", | 513 | seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n", |
514 | I8K_PROC_FMT, | 514 | I8K_PROC_FMT, |
515 | bios_version, | 515 | bios_version, |
516 | i8k_get_dmi_data(DMI_PRODUCT_SERIAL), | 516 | i8k_get_dmi_data(DMI_PRODUCT_SERIAL), |
517 | cpu_temp, | 517 | cpu_temp, |
518 | left_fan, right_fan, left_speed, right_speed, | 518 | left_fan, right_fan, left_speed, right_speed, |
519 | ac_power, fn_key); | 519 | ac_power, fn_key); |
520 | |||
521 | return 0; | ||
520 | } | 522 | } |
521 | 523 | ||
522 | static int i8k_open_fs(struct inode *inode, struct file *file) | 524 | static int i8k_open_fs(struct inode *inode, struct file *file) |