diff mbox

virtio-net: Fix incorrect argument type

Message ID 1305035482-3914-1-git-send-email-kongjianjun@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Amos Jianjun Kong May 10, 2011, 1:51 p.m. UTC
From: Amos Kong <kongjianjun@gmail.com>

drivers/net/virtio_net.c:213:52: warning: incorrect type in argument 2 (different signedness)
drivers/net/virtio_net.c:213:52:    expected unsigned int *len
drivers/net/virtio_net.c:213:52:    got int *<noident>
drivers/net/virtio_net.c:223:45: warning: incorrect type in argument 4 (different signedness)
drivers/net/virtio_net.c:223:45:    expected unsigned int *len
drivers/net/virtio_net.c:223:45:    got int *<noident>

Signed-off-by: Amos Kong <kongjianjun@gmail.com>
---
 drivers/net/virtio_net.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index 82dba5a..f6df2e0 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -199,7 +199,8 @@  static int receive_mergeable(struct virtnet_info *vi, struct sk_buff *skb)
 {
 	struct skb_vnet_hdr *hdr = skb_vnet_hdr(skb);
 	struct page *page;
-	int num_buf, i, len;
+	int num_buf, i;
+	unsigned int len;
 
 	num_buf = hdr->mhdr.num_buffers;
 	while (--num_buf) {