net: bridge: remove redundant check of f->dst
[linux-block.git] / net / bridge / br_device.c
index c366ccc8b3db7b3052faea7fc75367d6a9f052b5..ab4d33e0201424231bd11f06740a174bf8b8831d 100644 (file)
@@ -389,7 +389,7 @@ static int br_fill_forward_path(struct net_device_path_ctx *ctx,
        br_vlan_fill_forward_path_pvid(br, ctx, path);
 
        f = br_fdb_find_rcu(br, ctx->daddr, path->bridge.vlan_id);
-       if (!f || !f->dst)
+       if (!f)
                return -1;
 
        dst = READ_ONCE(f->dst);