Skip to content

Commit

Permalink
cleanup: remove unused member in scm_cookie.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ramirosen authored and davem330 committed Jul 6, 2009
1 parent 6f5bec1 commit af794c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/net/scm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit af794c7

Please sign in to comment.