Message ID | 20220103171722.1126109-4-sw@simonwunderlich.de (mailing list archive) |
---|---|
State | Accepted |
Commit | cde3fac565a7df8805a4e0e28d84a0f90177099a |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/3] batman-adv: Start new development cycle | expand |
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); } /**