Skip to contentSkip to conversation

new to kj and [PATCH] remove unneeded min/max-defs

Kernel-janitors Michael Veeck 1 participant 1 message Jan 28, 2004

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

Hi there!

As kj is suggested as a starting point for kernel hacking I looked through the TODO-list and found some easy stuff (at least I hope so).

Greping through the latest kernel tree (2.6.2-rc2) showed two min / max defines who don't need to be there and can be removed without compile errors.

So, attached is the patch against 2.6.2-rc2.

Is it wise to post this also on the 'normal' kernel list or is it too trivial for that?

Best regards
Michael Veeck

drivers/scsi/ips.h +0 -4
diff -Naur linux-2.6.2-rc2-old/drivers/scsi/ips.h linux-2.6.2-rc2-new/drivers/scsi/ips.h
@@ -124,10 +124,6 @@
       #define MDELAY mdelay
    #endif
 
-   #ifndef min
-      #define min(x,y) ((x) < (y) ? x : y)
-   #endif
-
    #define pci_dma_hi32(a)         ((a >> 16) >> 16)
    #define pci_dma_lo32(a)         (a & 0xffffffff)
 
drivers/telephony/ixj.h +0 -7
diff -Naur linux-2.6.2-rc2-old/drivers/telephony/ixj.h linux-2.6.2-rc2-new/drivers/telephony/ixj.h
@@ -60,13 +60,6 @@
 #define TRUE 1
 #define FALSE 0
 
-#ifndef min
-#define min(a,b) (((a)<(b))?(a):(b))
-#endif
-#ifndef max
-#define max(a,b) (((a)>(b))?(a):(b))
-#endif
-
 /******************************************************************************
 *
 *  This structure when unioned with the structures below makes simple byte

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors