mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
[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: patrick kelle <patrick.kelle81@gmail.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Acked-by: patrick kelle <patrick.kelle81@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
3a19cbf530
commit
f1633011e4
@ -1671,8 +1671,7 @@ static void fcoe_recv_frame(struct sk_buff *skb)
|
||||
skb->dev ? skb->dev->name : "<NULL>");
|
||||
|
||||
port = lport_priv(lport);
|
||||
if (skb_is_nonlinear(skb))
|
||||
skb_linearize(skb); /* not ideal */
|
||||
skb_linearize(skb); /* check for skb_is_nonlinear is within skb_linearize */
|
||||
|
||||
/*
|
||||
* Frame length checks and setting up the header pointers
|
||||
|
Loading…
Reference in New Issue
Block a user