drivers/media/video/saa5249.c MIN/MAX
Subsystems (2)
PATCH 1/1 drivers/media/video/saa5249.c MIN/MAX
Hi!
Patch (against 2.6.3-rc1) removes unnecessary min/max macros and changes calls to use kernel.h macros instead. Feedback always welcome
Michael
drivers/media/video/saa5249.c +4 -8
@@ -122,10 +122,6 @@#define FALSE 0#define TRUE 1#endif -#ifndef MIN -#define MIN (a, b) ((a) < (b) ? (a) : (b)) -#define MAX (a, b) ((a) > (b) ? (a) : (b)) -#endif #define RESCHED do { cond_resched(); } while(0)
@@ -518,8 +514,8 @@ {int len;char buf[16 ]; - start =MAX (req->start,32 ); - end =MIN (req->end,39 ); + start =max (req->start,32 ); + end =min (req->end,39 ); len=end-start+1 ;if (i2c_senddata (t,8 ,0 ,0 , start,-1 ) ||i2c_getdata (t, len, buf))
@@ -532,8 +528,8 @@ {char buf[32 ];int len; - start =MAX (req->start,7 ); - end =MIN (req->end,31 ); + start =max (req->start,7 ); + end =min (req->end,31 ); len=end-start+1 ;if (i2c_senddata (t,8 ,0 ,0 , start,-1 ) ||i2c_getdata (t, len, buf))
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors