From: Hagen Paul Pfeifer Date: Tue, 6 Apr 2010 05:39:52 +0000 (+0000) Subject: socket: remove duplicate declaration of struct timespec X-Git-Tag: v2.6.35-rc1~473^2~562 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=842509b8591fd9a40f5532a5f049bd29804af6d6;p=profile%2Fivi%2Fkernel-x86-ivi.git socket: remove duplicate declaration of struct timespec struct timespec ts was alreay defined. Reuse the previously defined one and reduce the memory footprint on the stack by 16 bytes. Signed-off-by: Hagen Paul Pfeifer Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index 769c386..ae904b5 100644 --- a/net/socket.c +++ b/net/socket.c @@ -619,10 +619,9 @@ void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMP, sizeof(tv), &tv); } else { - struct timespec ts; - skb_get_timestampns(skb, &ts); + skb_get_timestampns(skb, &ts[0]); put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMPNS, - sizeof(ts), &ts); + sizeof(ts[0]), &ts[0]); } }