diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-08-15 20:29:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-16 21:01:57 +0300 |
commit | 120390468b38f04373e67dbc9f361e2bb2996691 (patch) | |
tree | 8c2a93f16fcfece5eab681d00b71b383a8c13c87 /drivers/net/tun.c | |
parent | 6b0355f4a9a5cb1346f2c1e30bfee49f2b2c8631 (diff) | |
download | linux-120390468b38f04373e67dbc9f361e2bb2996691.tar.xz |
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/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 5892284eb8d0..f5017121cd57 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -2737,7 +2737,7 @@ static int tun_queue_resize(struct tun_struct *tun) int n = tun->numqueues + tun->numdisabled; int ret, i; - arrays = kmalloc(sizeof *arrays * n, GFP_KERNEL); + arrays = kmalloc_array(n, sizeof(*arrays), GFP_KERNEL); if (!arrays) return -ENOMEM; |