Skip to contentSkip to conversation

mm/vmstat: Clean up errors in vmstat.c

PATCH New [email protected] 1 participant 1 message Sep 27, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/vmstat: Clean up errors in vmstat.c

Fix the following errors reported by checkpatch:

ERROR: space prohibited after that '-' (ctx:WxW)

---
 mm/vmstat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/vmstat.c +2 -2
index 88ea95d4221c..0b0d7dc80125 100644
@@ -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);
Signature · 1 line
2.17.1