diff options
| author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-09 02:20:07 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-01-10 02:38:24 -0500 |
| commit | b4fff5f8bf32766ecaa4af6d5c7ef7f0ffb88ed2 (patch) | |
| tree | 472d68e9a83e891f924f4726d6872b1033718c00 /net/unix | |
| parent | ce6654cfc12558cc65b198cca991684e58e10bc6 (diff) | |
unix: Use FIELD_SIZEOF() in af_unix_init().
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix')
| -rw-r--r-- | net/unix/af_unix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 5b5c876c80e9..0c612361c153 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
| @@ -2426,9 +2426,8 @@ static struct pernet_operations unix_net_ops = { | |||
| 2426 | static int __init af_unix_init(void) | 2426 | static int __init af_unix_init(void) |
| 2427 | { | 2427 | { |
| 2428 | int rc = -1; | 2428 | int rc = -1; |
| 2429 | struct sk_buff *dummy_skb; | ||
| 2430 | 2429 | ||
| 2431 | BUILD_BUG_ON(sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb)); | 2430 | BUILD_BUG_ON(sizeof(struct unix_skb_parms) > FIELD_SIZEOF(struct sk_buff, cb)); |
| 2432 | 2431 | ||
| 2433 | rc = proto_register(&unix_proto, 1); | 2432 | rc = proto_register(&unix_proto, 1); |
| 2434 | if (rc != 0) { | 2433 | if (rc != 0) { |
