diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-09-21 23:41:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-21 23:41:44 -0400 |
commit | 97170ea1823bf00cf6ed0f503129e9053a66c53a (patch) | |
tree | ebc8a82e8abb884b60e92e5a2225738f63e103b3 /drivers/net/ieee802154 | |
parent | 35736c8165ba666b1a5f07a57f838d8ce1ac3c67 (diff) |
drivers/net/ieee802154/at86rf230.c: seq_printf() now returns NULL
Signed-off-by: Stephen 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index b8b0628dc2f3..9756e6451038 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
@@ -1645,32 +1645,17 @@ static struct dentry *at86rf230_debugfs_root; | |||
1645 | static int at86rf230_stats_show(struct seq_file *file, void *offset) | 1645 | static int at86rf230_stats_show(struct seq_file *file, void *offset) |
1646 | { | 1646 | { |
1647 | struct at86rf230_local *lp = file->private; | 1647 | struct at86rf230_local *lp = file->private; |
1648 | int ret; | ||
1649 | |||
1650 | ret = seq_printf(file, "SUCCESS:\t\t%8llu\n", lp->trac.success); | ||
1651 | if (ret < 0) | ||
1652 | return ret; | ||
1653 | |||
1654 | ret = seq_printf(file, "SUCCESS_DATA_PENDING:\t%8llu\n", | ||
1655 | lp->trac.success_data_pending); | ||
1656 | if (ret < 0) | ||
1657 | return ret; | ||
1658 | |||
1659 | ret = seq_printf(file, "SUCCESS_WAIT_FOR_ACK:\t%8llu\n", | ||
1660 | lp->trac.success_wait_for_ack); | ||
1661 | if (ret < 0) | ||
1662 | return ret; | ||
1663 | |||
1664 | ret = seq_printf(file, "CHANNEL_ACCESS_FAILURE:\t%8llu\n", | ||
1665 | lp->trac.channel_access_failure); | ||
1666 | if (ret < 0) | ||
1667 | return ret; | ||
1668 | 1648 | ||
1669 | ret = seq_printf(file, "NO_ACK:\t\t\t%8llu\n", lp->trac.no_ack); | 1649 | seq_printf(file, "SUCCESS:\t\t%8llu\n", lp->trac.success); |
1670 | if (ret < 0) | 1650 | seq_printf(file, "SUCCESS_DATA_PENDING:\t%8llu\n", |
1671 | return ret; | 1651 | lp->trac.success_data_pending); |
1672 | 1652 | seq_printf(file, "SUCCESS_WAIT_FOR_ACK:\t%8llu\n", | |
1673 | return seq_printf(file, "INVALID:\t\t%8llu\n", lp->trac.invalid); | 1653 | lp->trac.success_wait_for_ack); |
1654 | seq_printf(file, "CHANNEL_ACCESS_FAILURE:\t%8llu\n", | ||
1655 | lp->trac.channel_access_failure); | ||
1656 | seq_printf(file, "NO_ACK:\t\t\t%8llu\n", lp->trac.no_ack); | ||
1657 | seq_printf(file, "INVALID:\t\t%8llu\n", lp->trac.invalid); | ||
1658 | return 0; | ||
1674 | } | 1659 | } |
1675 | 1660 | ||
1676 | static int at86rf230_stats_open(struct inode *inode, struct file *file) | 1661 | static int at86rf230_stats_open(struct inode *inode, struct file *file) |