doc: fix some syntax errors in netlink mmap sample code
Subsystems (3)
PATCH 1/1 doc: fix some syntax errors in netlink mmap sample code
From: Cong Wang <[email protected]>
Cc Patrick McHardy <[email protected]>
Cc David S. Miller <[email protected]>
Signed-off-by Cong Wang <[email protected]>
---
Documentation/networking/netlink_mmap.txt +2 -2
@@ -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
From: Cong Wang <[email protected]>
Date: Mon, 24 Jun 2013 19:46:54 +0800
Quoted 6 lines
From: Cong Wang <[email protected]>
Cc Patrick McHardy <[email protected]>Cc David S. Miller <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied.