projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1203904
)
virtio: put paren around sizeof
author
stephen hemminger
<stephen@networkplumber.org>
Tue, 15 Aug 2017 17:29:17 +0000
(10:29 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index a3f3c66b4530d01190834167c82b92da71297d57..4302f313d9a73ff34aa37ec56d91100ac26df943 100644
(file)
--- a/
drivers/net/virtio_net.c
+++ b/
drivers/net/virtio_net.c
@@
-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);