Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0feed87 authored by Figo.zhang's avatar Figo.zhang Committed by David S. Miller
Browse files

tehuti: No need check vfree() pointer.



vfree() does its own 'NULL' check, so no need for check before
calling it.

Signed-off-by: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 50d36a93
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -948,7 +948,6 @@ static void print_rxfd(struct rxf_desc *rxfd);

static void bdx_rxdb_destroy(struct rxdb *db)
{
	if (db)
	vfree(db);
}

@@ -1482,11 +1481,9 @@ static void bdx_tx_db_close(struct txdb *d)
{
	BDX_ASSERT(d == NULL);

	if (d->start) {
	vfree(d->start);
	d->start = NULL;
}
}

/*************************************************************************
 *     Tx Engine                                                         *