lkml.org 
[lkml]   [2023]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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
\
 
 \ /
  Last update: 2023-09-27 18:51    [W:0.027 / U:23.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site