mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm/vmstat: Clean up errors in vmstat.c
@ 2023-09-27  6:42 chenguohua
  0 siblings, 0 replies; only message in thread
From: chenguohua @ 2023-09-27  6:42 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-27  6:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  6:42 [PATCH] mm/vmstat: Clean up errors in vmstat.c chenguohua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®