Skip to contentSkip to conversation

set_migratetype_isolate: remove unused variable.

PATCH Superseded Luca Tettamanti 3 participants 5 messages May 24, 2011 – May 25, 2011

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

PATCH 1/1 set_migratetype_isolate: remove unused variable.

---
 mm/page_alloc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
mm/page_alloc.c +0 -2
index 9d5498e..bcbdaf1 100644
@@ -5508,10 +5508,8 @@ int set_migratetype_isolate(struct page *page)
 	struct memory_isolate_notify arg;
 	int notifier_ret;
 	int ret = -EBUSY;
-	int zone_idx;
 
 	zone = page_zone(page);
-	zone_idx = zone_idx(zone);
 
 	spin_lock_irqsave(&zone->lock, flags);
 
Signature · 1 line
1.7.5.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Luca Tettamanti

If it's trivial, please write log body down.
Anyway, nice catch.
Thanks.

Signature · 9 lines
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#2 lore raw
Quoted 5 lines · Minchan Kim
Quoted 1 line · Luca Tettamanti

If it's trivial, please write log body down.

Ok, I'll keep that in mind.

Quoted 1 line

Anyway, nice catch.

I'm cheating ;-)
I'm working with warnings generated by gcc-4.6 and - yes - I'm screening false positives and compiling the patches :-)

Luca

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#4 lore raw

PATCH v2 1/1 set_migratetype_isolate: remove unused variable.

zone_idx is never read inside the function.

---
 mm/page_alloc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
mm/page_alloc.c +0 -2
index 9d5498e..bcbdaf1 100644
@@ -5508,10 +5508,8 @@ int set_migratetype_isolate(struct page *page)
 	struct memory_isolate_notify arg;
 	int notifier_ret;
 	int ret = -EBUSY;
-	int zone_idx;
 
 	zone = page_zone(page);
-	zone_idx = zone_idx(zone);
 
 	spin_lock_irqsave(&zone->lock, flags);
 
Signature · 1 line
1.7.5.1