virtio: put paren around sizeof
authorstephen hemminger <stephen@networkplumber.org>
Tue, 15 Aug 2017 17:29:17 +0000 (10:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 18:01:57 +0000 (11:01 -0700)
Kernel coding style is to put paren around operand of sizeof.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c

index a3f3c66b4530d01190834167c82b92da71297d57..4302f313d9a73ff34aa37ec56d91100ac26df943 100644 (file)
@@ -319,7 +319,7 @@ static struct sk_buff *page_to_skb(struct virtnet_info *vi,
 
        hdr_len = vi->hdr_len;
        if (vi->mergeable_rx_bufs)
-               hdr_padded_len = sizeof *hdr;
+               hdr_padded_len = sizeof(*hdr);
        else
                hdr_padded_len = sizeof(struct padded_vnet_hdr);