Messages in this thread Patch in this message | | | Date | Wed, 27 Sep 2023 14:42:45 +0800 (GMT+08:00) | From | chenguohua@jari ... | Subject | [PATCH] mm/vmstat: Clean up errors in vmstat.c |
| |
Fix the following errors reported by checkpatch:
ERROR: space prohibited after that '-' (ctx:WxW)
Signed-off-by: GuoHua Cheng <chenguohua@jari.cn> --- mm/vmstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/vmstat.c b/mm/vmstat.c index 88ea95d4221c..0b0d7dc80125 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -496,7 +496,7 @@ void __dec_zone_state(struct zone *zone, enum zone_stat_item item) v = __this_cpu_dec_return(*p); t = __this_cpu_read(pcp->stat_threshold); - if (unlikely(v < - t)) { + if (unlikely(v < -t)) { s8 overstep = t >> 1; zone_page_state_add(v - overstep, zone, item); @@ -519,7 +519,7 @@ void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item) v = __this_cpu_dec_return(*p); t = __this_cpu_read(pcp->stat_threshold); - if (unlikely(v < - t)) { + if (unlikely(v < -t)) { s8 overstep = t >> 1; node_page_state_add(v - overstep, pgdat, item); -- 2.17.1 | |