Commit f6250023 authored by Himangi Saraogi's avatar Himangi Saraogi Committed by Greg Kroah-Hartman

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: default avatarHimangi Saraogi <himangi774@gmail.com>
Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0d9142b
...@@ -339,7 +339,8 @@ static int dc_init_descriptor_list(struct channel *sc) ...@@ -339,7 +339,8 @@ static int dc_init_descriptor_list(struct channel *sc)
SBE_2T3E3_RX_DESC_SECOND_ADDRESS_CHAINED | SBE_2T3E3_MTU; SBE_2T3E3_RX_DESC_SECOND_ADDRESS_CHAINED | SBE_2T3E3_MTU;
if (sc->ether.rx_data[i] == NULL) { 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++) { for (j = 0; j < i; j++) {
dev_kfree_skb_any(sc->ether.rx_data[j]); dev_kfree_skb_any(sc->ether.rx_data[j]);
sc->ether.rx_data[j] = NULL; sc->ether.rx_data[j] = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment