|
@@ -1367,15 +1367,11 @@ static int sbmac_initctx(struct sbmac_softc *s)
|
|
|
|
|
|
static void sbdma_uninitctx(struct sbmacdma *d)
|
|
|
{
|
|
|
- if (d->sbdma_dscrtable_unaligned) {
|
|
|
- kfree(d->sbdma_dscrtable_unaligned);
|
|
|
- d->sbdma_dscrtable_unaligned = d->sbdma_dscrtable = NULL;
|
|
|
- }
|
|
|
+ kfree(d->sbdma_dscrtable_unaligned);
|
|
|
+ d->sbdma_dscrtable_unaligned = d->sbdma_dscrtable = NULL;
|
|
|
|
|
|
- if (d->sbdma_ctxtable) {
|
|
|
- kfree(d->sbdma_ctxtable);
|
|
|
- d->sbdma_ctxtable = NULL;
|
|
|
- }
|
|
|
+ kfree(d->sbdma_ctxtable);
|
|
|
+ d->sbdma_ctxtable = NULL;
|
|
|
}
|
|
|
|
|
|
|