diff options
| author | Minghao Chi <[email protected]> | 2021-12-10 02:19:17 +0000 |
|---|---|---|
| committer | Simon Wunderlich <[email protected]> | 2021-12-10 07:52:52 +0000 |
| commit | cde3fac565a7df8805a4e0e28d84a0f90177099a (patch) | |
| tree | 19dc8e412c5d924697fd8945c50ff04a9ca79eca | |
| parent | batman-adv: allow netlink usage in unprivileged containers (diff) | |
| download | kernel-cde3fac565a7df8805a4e0e28d84a0f90177099a.tar.gz kernel-cde3fac565a7df8805a4e0e28d84a0f90177099a.zip | |
batman-adv: remove unneeded variable in batadv_nc_init
Return status directly from function called.
Reported-by: Zeal Robot <[email protected]>
Signed-off-by: Minghao Chi <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
| -rw-r--r-- | net/batman-adv/network-coding.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c index 0a7f1d36a6a8..974d726fabb9 100644 --- a/net/batman-adv/network-coding.c +++ b/net/batman-adv/network-coding.c @@ -58,13 +58,9 @@ static int batadv_nc_recv_coded_packet(struct sk_buff *skb, */ int __init batadv_nc_init(void) { - int ret; - /* Register our packet type */ - ret = batadv_recv_handler_register(BATADV_CODED, - batadv_nc_recv_coded_packet); - - return ret; + return batadv_recv_handler_register(BATADV_CODED, + batadv_nc_recv_coded_packet); } /** |
