diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-08-15 19:29:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-16 20:01:57 +0200 |
commit | 120390468b38f04373e67dbc9f361e2bb2996691 (patch) | |
tree | 8c2a93f16fcfece5eab681d00b71b383a8c13c87 /drivers/net/tap.c | |
parent | net_sched/hfsc: opencode trivial set_active() and set_passive() (diff) | |
download | linux-120390468b38f04373e67dbc9f361e2bb2996691.tar.xz linux-120390468b38f04373e67dbc9f361e2bb2996691.zip |
tun/tap: use paren's with sizeof
Although sizeof is an operator in C. The kernel coding style convention
is to always use it like a function and add parenthesis.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tap.c')
-rw-r--r-- | drivers/net/tap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tap.c b/drivers/net/tap.c index 0d039411e64c..21b71ae947fd 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -1215,7 +1215,7 @@ int tap_queue_resize(struct tap_dev *tap) int n = tap->numqueues; int ret, i = 0; - arrays = kmalloc(sizeof *arrays * n, GFP_KERNEL); + arrays = kmalloc_array(n, sizeof(*arrays), GFP_KERNEL); if (!arrays) return -ENOMEM; |