ipv4: Make output route lookup return rtable directly.
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / infiniband / hw / cxgb3 / iwch_cm.c
index e654285aa6ba2abda2fe9ee469d47cc2e38290e6..e0ccbc53fbcc36cca850fad944da4fb0c0e7fdcf 100644 (file)
@@ -354,7 +354,8 @@ static struct rtable *find_route(struct t3cdev *dev, __be32 local_ip,
                          }
        };
 
-       if (ip_route_output_flow(&init_net, &rt, &fl, NULL))
+       rt = ip_route_output_flow(&init_net, &fl, NULL);
+       if (IS_ERR(rt))
                return NULL;
        return rt;
 }