From: Stephen Hemminger <stephen@networkplumber.org>
To: mlindner@marvell.com, stephen@networkplumber.org, mst@redhat.com,
jasowang@redhat.com
Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org,
virtualization@lists.linux-foundation.org,
Stephen Hemminger <sthemmin@microsoft.com>
Subject: [PATCH net-next 2/4] virtio: put paren around sizeof
Date: Tue, 15 Aug 2017 10:29:17 -0700 [thread overview]
Message-ID: <20170815172919.26153-3-sthemmin@microsoft.com> (raw)
In-Reply-To: <20170815172919.26153-1-sthemmin@microsoft.com>
Kernel coding style is to put paren around operand of sizeof.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/virtio_net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index a3f3c66b4530..4302f313d9a7 100644
--- 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);
--
2.11.0
next prev parent reply other threads:[~2017-08-15 17:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-15 17:29 [PATCH net-next 0/4] various sizeof cleanups Stephen Hemminger
2017-08-15 17:29 ` [PATCH net-next 1/4] tun/tap: use paren's with sizeof Stephen Hemminger
2017-08-15 17:29 ` Stephen Hemminger [this message]
2017-08-15 17:29 ` [PATCH net-next 3/4] skge: add paren around sizeof arg Stephen Hemminger
2017-08-15 17:29 ` [PATCH net-next 4/4] mlx4: sizeof style usage Stephen Hemminger
[not found] ` <20170815172919.26153-5-sthemmin-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>
2017-08-15 18:13 ` Leon Romanovsky
2017-08-20 10:27 ` Tariq Toukan
2017-08-20 18:00 ` Stephen Hemminger
[not found] ` <DM2PR21MB0074E2B2C697B1300B77EFEACC860-B2pw06WL+/BdZnmuHZ3GOs1VXTxX1y3OvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-21 10:53 ` Tariq Toukan
2017-08-15 19:47 ` [PATCH net-next 0/4] various sizeof cleanups Michael S. Tsirkin
[not found] ` <20170815172919.26153-1-sthemmin-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>
2017-08-16 18:02 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170815172919.26153-3-sthemmin@microsoft.com \
--to=stephen@networkplumber.org \
--cc=jasowang@redhat.com \
--cc=linux-rdma@vger.kernel.org \
--cc=mlindner@marvell.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=sthemmin@microsoft.com \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox