]> www.infradead.org Git - nvme.git/commit
net: bridge: remove redundant check of f->dst
authorlinke li <lilinke99@qq.com>
Tue, 23 Apr 2024 10:53:26 +0000 (18:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2024 12:15:38 +0000 (13:15 +0100)
commite7d96e750f2bc9b951290c90df421ac5e9adc3ed
tree041f42afb530450dff2200382e8071ece56dd095
parente44894e2aa4eb311ceda134de8b6f51ff979211b
net: bridge: remove redundant check of f->dst

In br_fill_forward_path(), f->dst is checked not to be NULL, then
immediately read using READ_ONCE and checked again. The first check is
useless, so this patch aims to remove the redundant check of f->dst.

Signed-off-by: linke li <lilinke99@qq.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_device.c