Commit 60f57ec2 authored by Geliang Tang's avatar Geliang Tang Committed by Greg Kroah-Hartman

IB/hfi1: use kvfree() in sdma.c

Use kvfree() instead of open-coding it.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Acked-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 49c32037
......@@ -966,10 +966,7 @@ static void sdma_clean(struct hfi1_devdata *dd, size_t num_engines)
sde->descq = NULL;
sde->descq_phys = 0;
}
if (is_vmalloc_addr(sde->tx_ring))
vfree(sde->tx_ring);
else
kfree(sde->tx_ring);
kvfree(sde->tx_ring);
sde->tx_ring = NULL;
}
spin_lock_irq(&dd->sde_map_lock);
......
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