mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
Staging: sbe-2t3e3: redundant null check before kfree()
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Cc: Krzysztof Halasa <khc@pm.waw.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e756910059
commit
24c92eac7e
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user