Commit dd3ca4c5 authored by Taehee Yoo's avatar Taehee Yoo Committed by Jakub Kicinski

amt: fix wrong return type of amt_send_membership_update()

amt_send_membership_update() would return -1 but it's return type is bool.
So, it should be used TRUE instead of -1.

Fixes: cbc21dc1 ("amt: add data plane of amt interface")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarTaehee Yoo <ap420073@gmail.com>
Link: https://lore.kernel.org/r/20220109163702.6331-1-ap420073@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d668769e
...@@ -1106,7 +1106,7 @@ static bool amt_send_membership_query(struct amt_dev *amt, ...@@ -1106,7 +1106,7 @@ static bool amt_send_membership_query(struct amt_dev *amt,
rt = ip_route_output_key(amt->net, &fl4); rt = ip_route_output_key(amt->net, &fl4);
if (IS_ERR(rt)) { if (IS_ERR(rt)) {
netdev_dbg(amt->dev, "no route to %pI4\n", &tunnel->ip4); netdev_dbg(amt->dev, "no route to %pI4\n", &tunnel->ip4);
return -1; return true;
} }
amtmq = skb_push(skb, sizeof(*amtmq)); amtmq = skb_push(skb, sizeof(*amtmq));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment