Commit ea5a32c0 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

netvsc: remove unnecessary check for NULL hdr

The function init_page_array is always called with a valid pointer
to RNDIS header. No check for NULL is needed.
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00f5024e
...@@ -333,7 +333,6 @@ static u32 init_page_array(void *hdr, u32 len, struct sk_buff *skb, ...@@ -333,7 +333,6 @@ static u32 init_page_array(void *hdr, u32 len, struct sk_buff *skb,
* 2. skb linear data * 2. skb linear data
* 3. skb fragment data * 3. skb fragment data
*/ */
if (hdr != NULL)
slots_used += fill_pg_buf(virt_to_page(hdr), slots_used += fill_pg_buf(virt_to_page(hdr),
offset_in_page(hdr), offset_in_page(hdr),
len, &pb[slots_used]); len, &pb[slots_used]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment