Commit 97170ea1 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by David S. Miller

drivers/net/ieee802154/at86rf230.c: seq_printf() now returns NULL

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Cc: Alexander Aring <alex.aring@gmail.com>
Cc: Stefan Schmidt <stefan@osg.samsung.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 35736c81
...@@ -1645,32 +1645,17 @@ static struct dentry *at86rf230_debugfs_root; ...@@ -1645,32 +1645,17 @@ static struct dentry *at86rf230_debugfs_root;
static int at86rf230_stats_show(struct seq_file *file, void *offset) static int at86rf230_stats_show(struct seq_file *file, void *offset)
{ {
struct at86rf230_local *lp = file->private; struct at86rf230_local *lp = file->private;
int ret;
ret = seq_printf(file, "SUCCESS:\t\t%8llu\n", lp->trac.success);
if (ret < 0)
return ret;
ret = seq_printf(file, "SUCCESS_DATA_PENDING:\t%8llu\n", seq_printf(file, "SUCCESS:\t\t%8llu\n", lp->trac.success);
seq_printf(file, "SUCCESS_DATA_PENDING:\t%8llu\n",
lp->trac.success_data_pending); lp->trac.success_data_pending);
if (ret < 0) seq_printf(file, "SUCCESS_WAIT_FOR_ACK:\t%8llu\n",
return ret;
ret = seq_printf(file, "SUCCESS_WAIT_FOR_ACK:\t%8llu\n",
lp->trac.success_wait_for_ack); lp->trac.success_wait_for_ack);
if (ret < 0) seq_printf(file, "CHANNEL_ACCESS_FAILURE:\t%8llu\n",
return ret;
ret = seq_printf(file, "CHANNEL_ACCESS_FAILURE:\t%8llu\n",
lp->trac.channel_access_failure); lp->trac.channel_access_failure);
if (ret < 0) seq_printf(file, "NO_ACK:\t\t\t%8llu\n", lp->trac.no_ack);
return ret; seq_printf(file, "INVALID:\t\t%8llu\n", lp->trac.invalid);
return 0;
ret = seq_printf(file, "NO_ACK:\t\t\t%8llu\n", lp->trac.no_ack);
if (ret < 0)
return ret;
return seq_printf(file, "INVALID:\t\t%8llu\n", lp->trac.invalid);
} }
static int at86rf230_stats_open(struct inode *inode, struct file *file) static int at86rf230_stats_open(struct inode *inode, struct file *file)
......
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