MIPS: Use BUG_ON() where possible.
Based on original patch by Stoyan Gaydarov <stoyboyker@gmail.com> which missed a few places. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@ -68,8 +68,7 @@ static int __init vdma_init(void)
|
||||
*/
|
||||
pgtbl = (VDMA_PGTBL_ENTRY *)__get_free_pages(GFP_KERNEL | GFP_DMA,
|
||||
get_order(VDMA_PGTBL_SIZE));
|
||||
if (!pgtbl)
|
||||
BUG();
|
||||
BUG_ON(!pgtbl);
|
||||
dma_cache_wback_inv((unsigned long)pgtbl, VDMA_PGTBL_SIZE);
|
||||
pgtbl = (VDMA_PGTBL_ENTRY *)KSEG1ADDR(pgtbl);
|
||||
|
||||
|
Reference in New Issue
Block a user