[TRIVIAL PATCH 2.5.48] Use min_t() instead of min() in mm/swap_state.c

From: Bob Miller (rem@osdl.org)
Date: Thu Nov 21 2002 - 17:31:59 EST


This change removes a "duplicate 'const'" compiler warning.

diff -Nru a/mm/swap_state.c b/mm/swap_state.c
--- a/mm/swap_state.c Thu Nov 21 13:51:26 2002
+++ b/mm/swap_state.c Thu Nov 21 13:51:26 2002
@@ -296,7 +296,7 @@
         struct page **pagep = pages;
 
         while (nr) {
- int todo = min(chunk, nr);
+ int todo = min_t(const int, chunk, nr);
                 int i;
 
                 for (i = 0; i < todo; i++)

-- 
Bob Miller					Email: rem@osdl.org
Open Source Development Lab			Phone: 503.626.2455 Ext. 17
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:38 EST