batman-adv: remove unneeded variable in batadv_nc_init

Return status directly from function called.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:
Minghao Chi 2021-12-10 02:19:17 +00:00 committed by Simon Wunderlich
parent 9057d6c23e
commit cde3fac565
1 changed files with 2 additions and 6 deletions

View File

@ -58,13 +58,9 @@ static int batadv_nc_recv_coded_packet(struct sk_buff *skb,
*/ */
int __init batadv_nc_init(void) int __init batadv_nc_init(void)
{ {
int ret;
/* Register our packet type */ /* Register our packet type */
ret = batadv_recv_handler_register(BATADV_CODED, return batadv_recv_handler_register(BATADV_CODED,
batadv_nc_recv_coded_packet); batadv_nc_recv_coded_packet);
return ret;
} }
/** /**