Commit e23f27c4 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] Remove unnecessary ";" in schedstat_ macros

With Joe Perches <joe@perches.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b389f382
......@@ -416,11 +416,11 @@ struct file_operations proc_schedstat_operations = {
.release = single_release,
};
# define schedstat_inc(rq, field) rq->field++;
# define schedstat_add(rq, field, amt) rq->field += amt;
# define schedstat_inc(rq, field) do { (rq)->field++; } while (0)
# define schedstat_add(rq, field, amt) do { (rq)->field += (amt); } while (0)
#else /* !CONFIG_SCHEDSTATS */
# define schedstat_inc(rq, field) do { } while (0);
# define schedstat_add(rq, field, amt) do { } while (0);
# define schedstat_inc(rq, field) do { } while (0)
# define schedstat_add(rq, field, amt) do { } while (0)
#endif
/*
......
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