aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/bcm/Transmit.c
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2012-09-13 21:11:36 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-13 20:35:40 -0700
commitd5873d381713ecf8a61a733b983676c68c8e67b5 (patch)
treea0ec1b7f4e81ee896bd693d22791cd8048f01bd4 /drivers/staging/bcm/Transmit.c
parent97e0a509d90d539db4b70362cf5e82983b5bc305 (diff)
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 <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm/Transmit.c')
-rw-r--r--drivers/staging/bcm/Transmit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/bcm/Transmit.c b/drivers/staging/bcm/Transmit.c
index 7a80e62ead2..1fbb54a91dc 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;
}