Commit 6a3386b1 authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman

staging: i2o: 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>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8895f04b
......@@ -264,16 +264,22 @@ static int i2o_report_query_status(struct seq_file *seq, int block_status,
{
switch (block_status) {
case -ETIMEDOUT:
return seq_printf(seq, "Timeout reading group %s.\n", group);
seq_printf(seq, "Timeout reading group %s.\n", group);
break;
case -ENOMEM:
return seq_printf(seq, "No free memory to read the table.\n");
seq_puts(seq, "No free memory to read the table.\n");
break;
case -I2O_PARAMS_STATUS_INVALID_GROUP_ID:
return seq_printf(seq, "Group %s not supported.\n", group);
seq_printf(seq, "Group %s not supported.\n", group);
break;
default:
return seq_printf(seq,
seq_printf(seq,
"Error reading group %s. BlockStatus 0x%02X\n",
group, -block_status);
break;
}
return 0;
}
static char *bus_strings[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment