From: Kevin McKinney Date: Fri, 14 Sep 2012 01:11:36 +0000 (-0400) Subject: Staging: bcm: Remove initialization from if statement in Transmit.c X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d5873d381713ecf8a61a733b983676c68c8e67b5;p=deliverable%2Flinux.git Staging: bcm: Remove initialization from if statement in Transmit.c This patch Remove initialization from if statement in Transmit.c as reported by checkpatch.pl. Signed-off-by: Kevin McKinney Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging/bcm/Transmit.c index 7a80e62ead22..1fbb54a91dc8 100644 --- a/drivers/staging/bcm/Transmit.c +++ b/drivers/staging/bcm/Transmit.c @@ -123,7 +123,8 @@ INT SetupNextSend(struct bcm_mini_adapter *Adapter, struct sk_buff *Packet, USH if (Adapter->PackInfo[QueueIndex].bEthCSSupport) { Leader.PLength = Packet->len; if (skb_headroom(Packet) < LEADER_SIZE) { - if ((status = skb_cow(Packet, LEADER_SIZE))) { + status = skb_cow(Packet, LEADER_SIZE); + if (status) { BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, NEXT_SEND, DBG_LVL_ALL, "bcm_transmit : Failed To Increase headRoom\n"); goto errExit; }