OSDN Git Service
(root)
/
android-x86
/
kernel.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
a3f3c66
..
4302f31
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);