]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/infiniband/ulp/ipoib/ipoib_main.c
IPoIB: Correct debugging output when path record lookup fails
[linux-2.6.git] / drivers / infiniband / ulp / ipoib / ipoib_main.c
index 18d27fd352ad9667972b71a6a2242a12ded97d39..f9dbc6f68145647078a74be3b49da198fe598781 100644 (file)
@@ -385,7 +385,7 @@ static void path_rec_completion(int status,
        struct sk_buff *skb;
        unsigned long flags;
 
-       if (pathrec)
+       if (!status)
                ipoib_dbg(priv, "PathRec LID 0x%04x for GID " IPOIB_GID_FMT "\n",
                          be16_to_cpu(pathrec->dlid), IPOIB_GID_ARG(pathrec->dgid));
        else