mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
[NETLINK]: Avoid pointer in netlink_run_queue
I was looking at Patrick's fix to inet_diag and it occured to me that we're using a pointer argument to return values unnecessarily in netlink_run_queue. Changing it to return the value will allow the compiler to generate better code since the value won't have to be memory-backed. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
007e3936bd
commit
0cfad07555
7 changed files with 16 additions and 14 deletions
|
|
@ -220,7 +220,7 @@ struct nl_info {
|
|||
u32 pid;
|
||||
};
|
||||
|
||||
extern void netlink_run_queue(struct sock *sk, unsigned int *qlen,
|
||||
extern unsigned int netlink_run_queue(struct sock *sk, unsigned int qlen,
|
||||
int (*cb)(struct sk_buff *,
|
||||
struct nlmsghdr *));
|
||||
extern int nlmsg_notify(struct sock *sk, struct sk_buff *skb,
|
||||
|
|
|
|||
Loading…
Reference in a new issue