]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/netrom.h
[PATCH] move capable() to capability.h
[linux-2.6-omap-h63xx.git] / include / net / netrom.h
index a6bf6e0f606aed23ac8a8b4a2583bc5d7d6a8d19..a5ee53bce62fc1fe546f2331f56190e960178016 100644 (file)
@@ -136,8 +136,7 @@ static __inline__ void nr_node_put(struct nr_node *nr_node)
 static __inline__ void nr_neigh_put(struct nr_neigh *nr_neigh)
 {
        if (atomic_dec_and_test(&nr_neigh->refcount)) {
-               if (nr_neigh->digipeat != NULL)
-                       kfree(nr_neigh->digipeat);
+               kfree(nr_neigh->digipeat);
                kfree(nr_neigh);
        }
 }