[PATCH] mm/vmstat: Clean up errors in vmstat.c

chenguohua@jari.cn posted 1 patch 2 years, 4 months ago
mm/vmstat.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] mm/vmstat: Clean up errors in vmstat.c
Posted by chenguohua@jari.cn 2 years, 4 months ago
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