Skip to contentSkip to conversation

forcedeth: Compile fix forcedeth 0.44

PATCH Manfred Spraul 2 participants 2 messages Sep 18, 2005 – Oct 21, 2005

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

Hi,

forcedeth-0.44 contains a spurious ; in nv_release_txskb. gcc-4 compiles it with a warning, older compilers might reject it. The attached onliner fixes that, sorry.

drivers/net/forcedeth.c +1 -1
@@ -923,7 +923,7 @@ static int nv_init_ring(struct net_devic
 static void nv_release_txskb(struct net_device *dev, unsigned int skbnr)
 {
 	struct fe_priv *np = get_nvpriv(dev);
-	struct sk_buff *skb = np->tx_skbuff[skbnr];;
+	struct sk_buff *skb = np->tx_skbuff[skbnr];
 	unsigned int j, entry, fragments;
 			
 	dprintk(KERN_INFO "%s: nv_release_txskb for skbnr %d, skb %p\n",
#1 lore raw
Quoted 13 lines · Manfred Spraul

Hi,

forcedeth-0.44 contains a spurious ; in nv_release_txskb. gcc-4 compiles it with a warning, older compilers might reject it. The attached onliner fixes that, sorry.

------------------------------------------------------------------------

drivers/net/forcedeth.c static int nv_init_ring(struct net_devic · line 927

Quoted 6 lines
drivers/net/forcedeth.c +1 -1
@@ -923,7 +923,7 @@ static int nv_init_ring(struct net_devic
 static void nv_release_txskb(struct net_device *dev, unsigned int skbnr)
 {
 	struct fe_priv *np = get_nvpriv(dev);
-	struct sk_buff *skb = np->tx_skbuff[skbnr];;
+	struct sk_buff *skb = np->tx_skbuff[skbnr];
 	unsigned int j, entry, fragments;

obviously OK, but dropped since the previous patch was dropped