]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/net/netrom.h
[IPV4]: Always set fl.proto in ip_route_newports
[karo-tx-linux.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);
        }
 }