Skip to content

Commit dd3ca4c

Browse files
TaeheeYookuba-moo
authored andcommitted
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: cbc21dc ("amt: add data plane of amt interface") Reported-by: kernel test robot <[email protected]> Signed-off-by: Taehee Yoo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d668769 commit dd3ca4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/amt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ static bool amt_send_membership_query(struct amt_dev *amt,
11061106
rt = ip_route_output_key(amt->net, &fl4);
11071107
if (IS_ERR(rt)) {
11081108
netdev_dbg(amt->dev, "no route to %pI4\n", &tunnel->ip4);
1109-
return -1;
1109+
return true;
11101110
}
11111111

11121112
amtmq = skb_push(skb, sizeof(*amtmq));

0 commit comments

Comments
 (0)