Skip to content

Commit 33090af

Browse files
MiaoheLintorvalds
authored andcommitted
mm/vmstat: remove unneeded return value
The return value of pagetypeinfo_showfree and pagetypeinfo_showblockcount are unused now. Remove them. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 64632fd commit 33090af

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mm/vmstat.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ static void pagetypeinfo_showfree_print(struct seq_file *m,
14541454
}
14551455

14561456
/* Print out the free pages at each order for each migatetype */
1457-
static int pagetypeinfo_showfree(struct seq_file *m, void *arg)
1457+
static void pagetypeinfo_showfree(struct seq_file *m, void *arg)
14581458
{
14591459
int order;
14601460
pg_data_t *pgdat = (pg_data_t *)arg;
@@ -1466,8 +1466,6 @@ static int pagetypeinfo_showfree(struct seq_file *m, void *arg)
14661466
seq_putc(m, '\n');
14671467

14681468
walk_zones_in_node(m, pgdat, true, false, pagetypeinfo_showfree_print);
1469-
1470-
return 0;
14711469
}
14721470

14731471
static void pagetypeinfo_showblockcount_print(struct seq_file *m,
@@ -1503,7 +1501,7 @@ static void pagetypeinfo_showblockcount_print(struct seq_file *m,
15031501
}
15041502

15051503
/* Print out the number of pageblocks for each migratetype */
1506-
static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg)
1504+
static void pagetypeinfo_showblockcount(struct seq_file *m, void *arg)
15071505
{
15081506
int mtype;
15091507
pg_data_t *pgdat = (pg_data_t *)arg;
@@ -1514,8 +1512,6 @@ static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg)
15141512
seq_putc(m, '\n');
15151513
walk_zones_in_node(m, pgdat, true, false,
15161514
pagetypeinfo_showblockcount_print);
1517-
1518-
return 0;
15191515
}
15201516

15211517
/*

0 commit comments

Comments
 (0)