diff options
| author | David S. Miller <davem@davemloft.net> | 2024-08-23 14:27:46 +0100 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2024-08-23 14:27:46 +0100 |
| commit | f9db28bb09f46087580f2a8da54bb0aab59a8024 (patch) | |
| tree | 26a311031f5cb61644ad12942da2455feaae9323 /drivers | |
| parent | b34a6e73faf68e4987f7a2037af4be1e89b91b17 (diff) | |
| parent | fb8e83cf443a98297cd15b58b5529f8d259b22f5 (diff) | |
Merge branch 'net-redundant-judgments'
Li Zetao says:
====================
net: Delete some redundant judgments
This patchset aims to remove some unnecessary judgments and make the
code more concise. In some network modules, rtnl_set_sk_err is used to
record error information, but the err is repeatedly judged to be less
than 0 on the error path. Deleted these redundant judgments.
No functional change intended.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/vxlan/vxlan_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c index 8983e75e9881..34391c18bba7 100644 --- a/drivers/net/vxlan/vxlan_core.c +++ b/drivers/net/vxlan/vxlan_core.c @@ -277,8 +277,7 @@ static void __vxlan_fdb_notify(struct vxlan_dev *vxlan, struct vxlan_fdb *fdb, rtnl_notify(skb, net, 0, RTNLGRP_NEIGH, NULL, GFP_ATOMIC); return; errout: - if (err < 0) - rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); + rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); } static void vxlan_fdb_switchdev_notifier_info(const struct vxlan_dev *vxlan, |
