Commit 24c92eac authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Greg Kroah-Hartman

Staging: sbe-2t3e3: redundant null check before kfree()

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e7569100
...@@ -442,15 +442,10 @@ void dc_drop_descriptor_list(struct channel *sc) ...@@ -442,15 +442,10 @@ void dc_drop_descriptor_list(struct channel *sc)
} }
} }
if (sc->ether.rx_ring != NULL) { kfree(sc->ether.rx_ring);
kfree(sc->ether.rx_ring); sc->ether.rx_ring = NULL;
sc->ether.rx_ring = NULL; kfree(sc->ether.tx_ring);
} sc->ether.tx_ring = NULL;
if (sc->ether.tx_ring != NULL) {
kfree(sc->ether.tx_ring);
sc->ether.tx_ring = 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