Skip to content

Commit 46c9521

Browse files
ramirosendavem330
authored andcommitted
netlink: Fix do_one_broadcast() prototype.
This patch changes the prototype of the do_one_broadcast() method so that it will return void. Signed-off-by: Rami Rosen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8e6e85e commit 46c9521

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

net/netlink/af_netlink.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,25 +1961,25 @@ struct netlink_broadcast_data {
19611961
void *tx_data;
19621962
};
19631963

1964-
static int do_one_broadcast(struct sock *sk,
1965-
struct netlink_broadcast_data *p)
1964+
static void do_one_broadcast(struct sock *sk,
1965+
struct netlink_broadcast_data *p)
19661966
{
19671967
struct netlink_sock *nlk = nlk_sk(sk);
19681968
int val;
19691969

19701970
if (p->exclude_sk == sk)
1971-
goto out;
1971+
return;
19721972

19731973
if (nlk->portid == p->portid || p->group - 1 >= nlk->ngroups ||
19741974
!test_bit(p->group - 1, nlk->groups))
1975-
goto out;
1975+
return;
19761976

19771977
if (!net_eq(sock_net(sk), p->net))
1978-
goto out;
1978+
return;
19791979

19801980
if (p->failure) {
19811981
netlink_overrun(sk);
1982-
goto out;
1982+
return;
19831983
}
19841984

19851985
sock_hold(sk);
@@ -2017,9 +2017,6 @@ static int do_one_broadcast(struct sock *sk,
20172017
p->skb2 = NULL;
20182018
}
20192019
sock_put(sk);
2020-
2021-
out:
2022-
return 0;
20232020
}
20242021

20252022
int netlink_broadcast_filtered(struct sock *ssk, struct sk_buff *skb, u32 portid,

0 commit comments

Comments
 (0)