netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next-2.6] cleanup: remove unused member in scm_cookie.
@ 2009-06-25 14:42 Rami Rosen
  2009-07-06  2:48 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Rami Rosen @ 2009-06-25 14:42 UTC (permalink / raw)
  To: davem, netdev

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

Hi,
This patch removes an unused member (seq) scm_cookie; besides initialized
to 0 in the header file, it is not used.

Regards,
Rami Rosen


Signed-off-by: Rami Rosen <ramirose@gmail.com>

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 649 bytes --]

diff --git a/include/net/scm.h b/include/net/scm.h
index f45bb6e..cf48c80 100644
--- a/include/net/scm.h
+++ b/include/net/scm.h
@@ -26,7 +26,6 @@ struct scm_cookie
 #ifdef CONFIG_SECURITY_NETWORK
 	u32			secid;		/* Passed security ID 	*/
 #endif
-	unsigned long		seq;		/* Connection seqno	*/
 };
 
 extern void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm);
@@ -59,7 +58,6 @@ static __inline__ int scm_send(struct socket *sock, struct msghdr *msg,
 	scm->creds.gid = current_gid();
 	scm->creds.pid = task_tgid_vnr(p);
 	scm->fp = NULL;
-	scm->seq = 0;
 	unix_get_peersec_dgram(sock, scm);
 	if (msg->msg_controllen <= 0)
 		return 0;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next-2.6] cleanup: remove unused member in scm_cookie.
  2009-06-25 14:42 [PATCH net-next-2.6] cleanup: remove unused member in scm_cookie Rami Rosen
@ 2009-07-06  2:48 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-07-06  2:48 UTC (permalink / raw)
  To: ramirose; +Cc: netdev

From: Rami Rosen <ramirose@gmail.com>
Date: Thu, 25 Jun 2009 17:42:19 +0300

> This patch removes an unused member (seq) scm_cookie; besides initialized
> to 0 in the header file, it is not used.
> 
> Signed-off-by: Rami Rosen <ramirose@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-06  2:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 14:42 [PATCH net-next-2.6] cleanup: remove unused member in scm_cookie Rami Rosen
2009-07-06  2:48 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).