]> granicus.if.org Git - sysstat/commitdiff
sadf: softnet stats: Remove unneeded variables initialization
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 29 Oct 2016 13:09:05 +0000 (15:09 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 29 Oct 2016 13:09:05 +0000 (15:09 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
rndr_stats.c

index d756083b1a41404db99a1ad9fb0dd78d18b77455..82e60e3e149156e562d6b8e78761de53cd863750 100644 (file)
@@ -3001,9 +3001,7 @@ __print_funct_t render_softnet_stats(struct activity *a, int isdb, char *pre,
                                     int curr, unsigned long long itv)
 {
        int i;
-       struct stats_softnet
-               *ssnc = (struct stats_softnet *) a->buf[curr],
-               *ssnp = (struct stats_softnet *) a->buf[!curr];
+       struct stats_softnet *ssnc, *ssnp;
        int pt_newlin
                = (DISPLAY_HORIZONTALLY(flags) ? PT_NOFLAG : PT_NEWLIN);