]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: bcm: Remove initialization from if statement in Transmit.c
authorKevin McKinney <klmckinney1@gmail.com>
Fri, 14 Sep 2012 01:11:36 +0000 (21:11 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 03:35:40 +0000 (20:35 -0700)
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>
drivers/staging/bcm/Transmit.c

index 7a80e62ead227dd544b4a1503b6dfaa136e5b0cd..1fbb54a91dc8f11b9b53b875ea6fab7476492d38 100644 (file)
@@ -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;
                        }