diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-16 19:24:44 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:24 -0400 |
commit | 0cfad07555312468296ea3bbbcdf99038f58678b (patch) | |
tree | a95c432bcafaf22e965dcaf27bfd4a61723d1d64 /net/xfrm | |
parent | 007e3936bdaaa012483c9fe06ca71c272458c710 (diff) |
[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>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 1f8e7c22ddbd..8e10e9098a83 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -1887,7 +1887,7 @@ static void xfrm_netlink_rcv(struct sock *sk, int len) | |||
1887 | 1887 | ||
1888 | do { | 1888 | do { |
1889 | mutex_lock(&xfrm_cfg_mutex); | 1889 | mutex_lock(&xfrm_cfg_mutex); |
1890 | netlink_run_queue(sk, &qlen, &xfrm_user_rcv_msg); | 1890 | qlen = netlink_run_queue(sk, qlen, &xfrm_user_rcv_msg); |
1891 | mutex_unlock(&xfrm_cfg_mutex); | 1891 | mutex_unlock(&xfrm_cfg_mutex); |
1892 | 1892 | ||
1893 | } while (qlen); | 1893 | } while (qlen); |