Commit:     20089ca55786a243c7b72becd1bf670f4e2c2028
Parent:     856c52a741950dc0be2c5c231efec626e9a0a3fa
Author:     Roland Dreier <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 10 11:18:34 2007 -0700
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 11:18:34 2007 -0700

    IPoIB/cm: Fix warning if IPV6 is not enabled
        drivers/infiniband/ulp/ipoib/ipoib_cm.c:1151: warning: unused variable 
    by getting rid of the variable dev, which is only used if CONFIG_IPV6
    is enabled, and replacing the one use of it with the value it is
    assigned, namely priv->dev.
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
 drivers/infiniband/ulp/ipoib/ipoib_cm.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c 
index ea74d1e..6764d21 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -1148,7 +1148,6 @@ static void ipoib_cm_skb_reap(struct work_struct *work)
        struct ipoib_dev_priv *priv = container_of(work, struct ipoib_dev_priv,
-       struct net_device *dev = priv->dev;
        struct sk_buff *skb;
        unsigned mtu = priv->mcast_mtu;
@@ -1162,7 +1161,7 @@ static void ipoib_cm_skb_reap(struct work_struct *work)
                        icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, 
 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
                else if (skb->protocol == htons(ETH_P_IPV6))
-                       icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, dev);
+                       icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, priv->dev);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to