tulip: Add missing parens.
authorDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2010 01:56:34 +0000 (18:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2010 01:56:34 +0000 (18:56 -0700)
As reported by Stephen Rothwell.

drivers/net/tulip/uli526x.c: In function 'uli526x_rx_packet':
drivers/net/tulip/uli526x.c:861: warning: assignment makes pointer from integer without a cast

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tulip/uli526x.c

index 90be57bad39dbfeebf03e2fefad91e4232d74351..a4f09d490531db40bf5f703b52d868492a1b6ffc 100644 (file)
@@ -858,7 +858,7 @@ static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info
                                /* Good packet, send to upper layer */
                                /* Shorst packet used new SKB */
                                if ((rxlen < RX_COPY_SIZE) &&
-                                   ((new_skb = dev_alloc_skb(rxlen + 2) != NULL))) {
+                                   (((new_skb = dev_alloc_skb(rxlen + 2)) != NULL))) {
                                        skb = new_skb;
                                        /* size less than COPY_SIZE, allocate a rxlen SKB */
                                        skb_reserve(skb, 2); /* 16byte align */