]> git.hungrycats.org Git - linux/commitdiff
Remove 'const' from min/max, to avoid gcc warning about double usage.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 10 Mar 2004 00:45:53 +0000 (16:45 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 10 Mar 2004 00:45:53 +0000 (16:45 -0800)
include/linux/kernel.h

index 0e13d9677b8f21817ec447a117f8bcc9d5c3a89f..e11e791993571fa02aa67d3e5a8527425418f699 100644 (file)
@@ -168,14 +168,14 @@ extern void dump_stack(void);
  * "unnecessary" pointer comparison.
  */
 #define min(x,y) ({ \
-       const typeof(x) _x = (x);       \
-       const typeof(y) _y = (y);       \
+       typeof(x) _x = (x);     \
+       typeof(y) _y = (y);     \
        (void) (&_x == &_y);            \
        _x < _y ? _x : _y; })
 
 #define max(x,y) ({ \
-       const typeof(x) _x = (x);       \
-       const typeof(y) _y = (y);       \
+       typeof(x) _x = (x);     \
+       typeof(y) _y = (y);     \
        (void) (&_x == &_y);            \
        _x > _y ? _x : _y; })