]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/net/dnet.c: Fix compile warning
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 21 May 2012 14:45:24 +0000 (14:45 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 22 May 2012 15:18:15 +0000 (10:18 -0500)
Fix this:
dnet.c: In function 'dnet_eth_initialize':
dnet.c:380:15: warning: assignment from incompatible pointer type

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
drivers/net/dnet.c

index 15d0a6e7410ec5b5a2338f978f26c0415d99af8a..944a0c046f7a9214b0e405cf91465029d7fbe353 100644 (file)
@@ -130,8 +130,7 @@ static u16 dnet_mdio_read(struct dnet_device *dnet, u8 reg)
        return value;
 }
 
-static int dnet_send(struct eth_device *netdev, volatile void *packet,
-                    int length)
+static int dnet_send(struct eth_device *netdev, void *packet, int length)
 {
        struct dnet_device *dnet = to_dnet(netdev);
        int i, wrsz;