Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a267d3b authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

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 1f33c41c ("seq_file: Rename seq_overflow() to
     seq_has_overflowed() and make public")

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0a56c0e1
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -510,13 +510,15 @@ static int i8k_proc_show(struct seq_file *seq, void *offset)
	 * 9)  AC power
	 * 10) Fn Key status
	 */
	return seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n",
	seq_printf(seq, "%s %s %s %d %d %d %d %d %d %d\n",
		   I8K_PROC_FMT,
		   bios_version,
		   i8k_get_dmi_data(DMI_PRODUCT_SERIAL),
		   cpu_temp,
		   left_fan, right_fan, left_speed, right_speed,
		   ac_power, fn_key);

	return 0;
}

static int i8k_open_fs(struct inode *inode, struct file *file)