net: emaclite: Use PKTSIZE directly
authorMichal Simek <monstr@monstr.eu>
Mon, 12 Sep 2011 21:10:04 +0000 (21:10 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 15 Oct 2011 20:09:27 +0000 (22:09 +0200)
Do not setup additional ENET_MAX_MTU macro.

Signed-off-by: Michal Simek <monstr@monstr.eu>
drivers/net/xilinx_emaclite.c

index 93424761b26d3089d482ebd56c9d404ac690f39c..aa9ac4b2ef908c1d25345864b0e85669434713a0 100644 (file)
@@ -31,8 +31,6 @@
 
 #undef DEBUG
 
-#define ENET_MAX_MTU           PKTSIZE
-#define ENET_MAX_MTU_ALIGNED   PKTSIZE_ALIGN
 #define ENET_ADDR_LENGTH       6
 
 /* EmacLite constants */
@@ -212,8 +210,8 @@ static int emaclite_send (struct eth_device *dev, volatile void *ptr, int len)
 
        u32 maxtry = 1000;
 
-       if (len > ENET_MAX_MTU)
-               len = ENET_MAX_MTU;
+       if (len > PKTSIZE)
+               len = PKTSIZE;
 
        while (!xemaclite_txbufferavailable(dev) && maxtry) {
                udelay (10);
@@ -328,8 +326,8 @@ static int emaclite_recv(struct eth_device *dev)
                        debug ("IP Packet\n");
                        break;
                default:
-                       debug ("Other Packet\n");
-                       length = ENET_MAX_MTU;
+                       debug("Other Packet\n");
+                       length = PKTSIZE;
                        break;
        }