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

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
......@@ -948,8 +948,7 @@ static void print_rxfd(struct rxf_desc *rxfd);
static void bdx_rxdb_destroy(struct rxdb *db)
{
if (db)
vfree(db);
vfree(db);
}
static struct rxdb *bdx_rxdb_create(int nelem)
......@@ -1482,10 +1481,8 @@ static void bdx_tx_db_close(struct txdb *d)
{
BDX_ASSERT(d == NULL);
if (d->start) {
vfree(d->start);
d->start = NULL;
}
vfree(d->start);
d->start = 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