aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tehuti.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/net/tehuti.c b/drivers/net/tehuti.c
index 093807a182f2..3c2679cd196b 100644
--- a/drivers/net/tehuti.c
+++ b/drivers/net/tehuti.c
@@ -948,8 +948,7 @@ static void print_rxfd(struct rxf_desc *rxfd);
948 948
949static void bdx_rxdb_destroy(struct rxdb *db) 949static void bdx_rxdb_destroy(struct rxdb *db)
950{ 950{
951 if (db) 951 vfree(db);
952 vfree(db);
953} 952}
954 953
955static struct rxdb *bdx_rxdb_create(int nelem) 954static struct rxdb *bdx_rxdb_create(int nelem)
@@ -1482,10 +1481,8 @@ static void bdx_tx_db_close(struct txdb *d)
1482{ 1481{
1483 BDX_ASSERT(d == NULL); 1482 BDX_ASSERT(d == NULL);
1484 1483
1485 if (d->start) { 1484 vfree(d->start);
1486 vfree(d->start); 1485 d->start = NULL;
1487 d->start = NULL;
1488 }
1489} 1486}
1490 1487
1491/************************************************************************* 1488/*************************************************************************