Skip to contentSkip to conversation

fcoe patch fix for 3.3 (scsi-misc)

PATCH New Robert Love 1 participant 2 messages Dec 16, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fcoe patch fix for 3.3 (scsi-misc)

This is just a trivial patch that I wanted to get out before the holidays.

---

Robert Love (1):
fcoe: remove double check if skb is nonlinear

 drivers/scsi/fcoe/fcoe.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Signature · 1 line
Thanks, //Rob
#1 lore raw

PATCH 1/1 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.

---
 drivers/scsi/fcoe/fcoe.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/scsi/fcoe/fcoe.c +1 -2
index c18e201..b40d11d 100644
@@ -1670,8 +1670,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