drivers/net/ieee802154/at86rf230.c: seq_printf() now returns NULL
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Sep 2015 03:41:44 +0000 (20:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Sep 2015 03:41:44 +0000 (20:41 -0700)
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>
drivers/net/ieee802154/at86rf230.c

index b8b0628dc2f3707b11906f14da61132fa12332ef..9756e6451038d671f571014d3fdc906a07363f62 100644 (file)
@@ -1645,32 +1645,17 @@ static struct dentry *at86rf230_debugfs_root;
 static int at86rf230_stats_show(struct seq_file *file, void *offset)
 {
        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",
-                        lp->trac.success_data_pending);
-       if (ret < 0)
-               return ret;
-
-       ret = seq_printf(file, "SUCCESS_WAIT_FOR_ACK:\t%8llu\n",
-                        lp->trac.success_wait_for_ack);
-       if (ret < 0)
-               return ret;
-
-       ret = seq_printf(file, "CHANNEL_ACCESS_FAILURE:\t%8llu\n",
-                        lp->trac.channel_access_failure);
-       if (ret < 0)
-               return ret;
 
-       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);
+       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);
+       seq_printf(file, "SUCCESS_WAIT_FOR_ACK:\t%8llu\n",
+                  lp->trac.success_wait_for_ack);
+       seq_printf(file, "CHANNEL_ACCESS_FAILURE:\t%8llu\n",
+                  lp->trac.channel_access_failure);
+       seq_printf(file, "NO_ACK:\t\t\t%8llu\n", lp->trac.no_ack);
+       seq_printf(file, "INVALID:\t\t%8llu\n", lp->trac.invalid);
+       return 0;
 }
 
 static int at86rf230_stats_open(struct inode *inode, struct file *file)