[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:
committed by
David S. Miller
parent
007e3936bd
commit
0cfad07555
@@ -845,7 +845,7 @@ static void inet_diag_rcv(struct sock *sk, int len)
|
||||
|
||||
do {
|
||||
mutex_lock(&inet_diag_mutex);
|
||||
netlink_run_queue(sk, &qlen, &inet_diag_rcv_msg);
|
||||
qlen = netlink_run_queue(sk, qlen, &inet_diag_rcv_msg);
|
||||
mutex_unlock(&inet_diag_mutex);
|
||||
} while (qlen);
|
||||
}
|
||||
|
Reference in New Issue
Block a user