提交 f1633011 编写于 作者: R Robert Love 提交者: James Bottomley

[SCSI] fcoe: remove double check if skb is nonlinear

skb_linearize already has a check for skb_is_nonlinear,
there is no need to duplicate the check in fcoe.c. This
patch simply removes the unnecessary check and calls
skb_linearize unconditionally.
Reported-by: Npatrick kelle <patrick.kelle81@gmail.com>
Signed-off-by: NRobert Love <robert.w.love@intel.com>
Acked-by: Npatrick kelle <patrick.kelle81@gmail.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 3a19cbf5
...@@ -1671,8 +1671,7 @@ static void fcoe_recv_frame(struct sk_buff *skb) ...@@ -1671,8 +1671,7 @@ static void fcoe_recv_frame(struct sk_buff *skb)
skb->dev ? skb->dev->name : "<NULL>"); skb->dev ? skb->dev->name : "<NULL>");
port = lport_priv(lport); port = lport_priv(lport);
if (skb_is_nonlinear(skb)) skb_linearize(skb); /* check for skb_is_nonlinear is within skb_linearize */
skb_linearize(skb); /* not ideal */
/* /*
* Frame length checks and setting up the header pointers * Frame length checks and setting up the header pointers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册