diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-07-31 06:17:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-01 01:05:28 -0400 |
commit | 74e83b23f2619db057c9e3c3ec4b7090f883bc5e (patch) | |
tree | 6630a647cc0ea9c9241079ea1de0c0320f81d153 /net/netlink | |
parent | 7304fe4681634a8e0511a5922c972aa132ffb43d (diff) |
netlink: Use PAGE_ALIGNED macro
Use PAGE_ALIGNED(...) instead of IS_ALIGNED(..., PAGE_SIZE).
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 1b38f7fe12f1..ce82722a7265 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -374,7 +374,7 @@ static int netlink_set_ring(struct sock *sk, struct nl_mmap_req *req, | |||
374 | 374 | ||
375 | if ((int)req->nm_block_size <= 0) | 375 | if ((int)req->nm_block_size <= 0) |
376 | return -EINVAL; | 376 | return -EINVAL; |
377 | if (!IS_ALIGNED(req->nm_block_size, PAGE_SIZE)) | 377 | if (!PAGE_ALIGNED(req->nm_block_size)) |
378 | return -EINVAL; | 378 | return -EINVAL; |
379 | if (req->nm_frame_size < NL_MMAP_HDRLEN) | 379 | if (req->nm_frame_size < NL_MMAP_HDRLEN) |
380 | return -EINVAL; | 380 | return -EINVAL; |