netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch net-next] doc: fix some syntax errors in netlink mmap sample code
@ 2013-06-24 11:46 Cong Wang
  2013-06-25 23:47 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Cong Wang @ 2013-06-24 11:46 UTC (permalink / raw)
  To: netdev; +Cc: Patrick McHardy, David S. Miller, Cong Wang

From: Cong Wang <amwang@redhat.com>


Cc: Patrick McHardy <kaber@trash.net>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
---
diff --git a/Documentation/networking/netlink_mmap.txt b/Documentation/networking/netlink_mmap.txt
index e6088ba..5cc6005 100644
--- a/Documentation/networking/netlink_mmap.txt
+++ b/Documentation/networking/netlink_mmap.txt
@@ -274,9 +274,9 @@ This example assumes some ring parameters of the ring setup are available.
 			/* Get next frame header */
 			hdr = rx_ring + frame_offset;
 
-			if (hdr->nm_status == NL_MMAP_STATUS_VALID)
+			if (hdr->nm_status == NL_MMAP_STATUS_VALID) {
 				/* Regular memory mapped frame */
-				nlh = (void *hdr) + NL_MMAP_HDRLEN;
+				nlh = (void *)hdr + NL_MMAP_HDRLEN;
 				len = hdr->nm_len;
 
 				/* Release empty message immediately. May happen

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Patch net-next] doc: fix some syntax errors in netlink mmap sample code
  2013-06-24 11:46 [Patch net-next] doc: fix some syntax errors in netlink mmap sample code Cong Wang
@ 2013-06-25 23:47 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-06-25 23:47 UTC (permalink / raw)
  To: amwang; +Cc: netdev, kaber

From: Cong Wang <amwang@redhat.com>
Date: Mon, 24 Jun 2013 19:46:54 +0800

> From: Cong Wang <amwang@redhat.com>
> 
> 
> Cc: Patrick McHardy <kaber@trash.net>
> Cc: David S. Miller <davem@davemloft.net>
> Signed-off-by: Cong Wang <amwang@redhat.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-25 23:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-24 11:46 [Patch net-next] doc: fix some syntax errors in netlink mmap sample code Cong Wang
2013-06-25 23:47 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).