Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0541743b authored by RongQing.Li's avatar RongQing.Li Committed by David S. Miller
Browse files

ethernet/broadcom: ip6_route_output() never returns NULL.



ip6_route_output() never returns NULL, so it is wrong to
check if the return value is NULL.

Signed-off-by: default avatarRongQing.Li <roy.qing.li@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5095d64d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3584,7 +3584,11 @@ static int cnic_get_v6_route(struct sockaddr_in6 *dst_addr,
		fl6.flowi6_oif = dst_addr->sin6_scope_id;

	*dst = ip6_route_output(&init_net, NULL, &fl6);
	if (*dst)
	if ((*dst)->error) {
		dst_release(*dst);
		*dst = NULL;
		return -ENETUNREACH;
	} else
		return 0;
#endif