mirror of https://gitee.com/openkylin/linux.git
virtio: put paren around sizeof
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>
This commit is contained in:
parent
120390468b
commit
a4a765031d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue