aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/sbe-2t3e3/dc.c
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-03-02 03:08:46 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-07 13:29:25 -0800
commitf6250023a0230fb127ea1db7982c4f11cc55fa69 (patch)
tree93785d6a2c0c2814c16ae992cf7376975c4baa8a /drivers/staging/sbe-2t3e3/dc.c
parentb0d9142b17602f84b329ba8226c1339b3cc2826f (diff)
staging:sbe-2t3e3: remove assignment in if condition
This patch removes the assignment in an if condition to do away with the checkpatch warning :'do not use assignment in if condition'. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sbe-2t3e3/dc.c')
-rw-r--r--drivers/staging/sbe-2t3e3/dc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/sbe-2t3e3/dc.c b/drivers/staging/sbe-2t3e3/dc.c
index f207b9e015c..42ae67c5bc3 100644
--- a/drivers/staging/sbe-2t3e3/dc.c
+++ b/drivers/staging/sbe-2t3e3/dc.c
@@ -339,7 +339,8 @@ static int dc_init_descriptor_list(struct channel *sc)
SBE_2T3E3_RX_DESC_SECOND_ADDRESS_CHAINED | SBE_2T3E3_MTU;
if (sc->ether.rx_data[i] == NULL) {
- if (!(m = dev_alloc_skb(MCLBYTES))) {
+ m = dev_alloc_skb(MCLBYTES);
+ if (!m) {
for (j = 0; j < i; j++) {
dev_kfree_skb_any(sc->ether.rx_data[j]);
sc->ether.rx_data[j] = NULL;