Message ID | 20240419080200.3531134-1-liuhangbin@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 4fd1edcdf13c0d234543ecf502092be65c5177db |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] bridge/br_netlink.c: no need to return void function | expand |
On 4/19/24 11:02, Hangbin Liu wrote: > br_info_notify is a void function. There is no need to return. > > Fixes: b6d0425b816e ("bridge: cfm: Netlink Notifications.") > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> > --- > net/bridge/br_netlink.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c > index 2cf4fc756263..f17dbac7d828 100644 > --- a/net/bridge/br_netlink.c > +++ b/net/bridge/br_netlink.c > @@ -667,7 +667,7 @@ void br_ifinfo_notify(int event, const struct net_bridge *br, > { > u32 filter = RTEXT_FILTER_BRVLAN_COMPRESSED; > > - return br_info_notify(event, br, port, filter); > + br_info_notify(event, br, port, filter); > } > > /* Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Hello: This patch was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Fri, 19 Apr 2024 16:02:00 +0800 you wrote: > br_info_notify is a void function. There is no need to return. > > Fixes: b6d0425b816e ("bridge: cfm: Netlink Notifications.") > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> > --- > net/bridge/br_netlink.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the summary with links: - [net] bridge/br_netlink.c: no need to return void function https://git.kernel.org/netdev/net/c/4fd1edcdf13c You are awesome, thank you!
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 2cf4fc756263..f17dbac7d828 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c @@ -667,7 +667,7 @@ void br_ifinfo_notify(int event, const struct net_bridge *br, { u32 filter = RTEXT_FILTER_BRVLAN_COMPRESSED; - return br_info_notify(event, br, port, filter); + br_info_notify(event, br, port, filter); } /*
br_info_notify is a void function. There is no need to return. Fixes: b6d0425b816e ("bridge: cfm: Netlink Notifications.") Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> --- net/bridge/br_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)