diff options
| author | yuan linyu <[email protected]> | 2017-01-03 12:42:17 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-01-04 18:04:37 +0000 |
| commit | 1ff8cebf49ed9e9ca2ae44b5c4176aef9c21af9c (patch) | |
| tree | 0f0a0657be00abd5c252ebe5ce59a4dca04a3345 /net/core/scm.c | |
| parent | net/sched: cls_matchall: Fix error path (diff) | |
| download | kernel-1ff8cebf49ed9e9ca2ae44b5c4176aef9c21af9c.tar.gz kernel-1ff8cebf49ed9e9ca2ae44b5c4176aef9c21af9c.zip | |
scm: remove use CMSG{_COMPAT}_ALIGN(sizeof(struct {compat_}cmsghdr))
sizeof(struct cmsghdr) and sizeof(struct compat_cmsghdr) already aligned.
remove use CMSG_ALIGN(sizeof(struct cmsghdr)) and
CMSG_COMPAT_ALIGN(sizeof(struct compat_cmsghdr)) keep code consistent.
Signed-off-by: yuan linyu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/core/scm.c')
| -rw-r--r-- | net/core/scm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/scm.c b/net/core/scm.c index d8820438ba37..b6d83686e149 100644 --- a/net/core/scm.c +++ b/net/core/scm.c @@ -71,7 +71,7 @@ static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp) struct file **fpp; int i, num; - num = (cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)))/sizeof(int); + num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int); if (num <= 0) return 0; |
