Repository : ssh://git@diktynna/batman-adv
On branch : master
>---------------------------------------------------------------
commit d6bf67114334dbc661b487b44f816396180980e0
Author: Minghao Chi <chi.minghao(a)zte.com.cn>
Date: Fri Dec 10 02:19:17 2021 +0000
batman-adv: remove unneeded variable
Return status directly from function called.
Reported-by: Zeal Robot <zealci(a)zte.com.cm>
Signed-off-by: Minghao Chi <chi.minghao(a)zte.com.cn>
Signed-off-by: Sven Eckelmann <sven(a)narfation.org>
>---------------------------------------------------------------
d6bf67114334dbc661b487b44f816396180980e0
net/batman-adv/network-coding.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/net/batman-adv/network-coding.c b/net/batman-adv/network-coding.c
index 0a7f1d36..974d726f 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);
}
/**