Skip to content
Permalink
Browse files
arm: dma fix returnvar.cocci warnings
Remove unneeded variables when "0" can be returned.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
  • Loading branch information
jing yangyang authored and intel-lab-lkp committed Aug 20, 2021
1 parent 33e65b1 commit a5037ed7d3a617c82c996788afb1a703170eb192
Showing 1 changed file with 1 addition and 2 deletions.
@@ -79,7 +79,6 @@ static const struct omap_dma_reg reg_map[] = {

static unsigned configure_dma_errata(void)
{
unsigned errata = 0;

/*
* Errata applicable for OMAP2430ES1.0 and all omap2420
@@ -158,7 +157,7 @@ static unsigned configure_dma_errata(void)
if (cpu_is_omap34xx() && (omap_type() != OMAP2_DEVICE_TYPE_GP))
SET_DMA_ERRATA(DMA_ROMCODE_BUG);

return errata;
return 0;
}

static const struct dma_slave_map omap24xx_sdma_dt_map[] = {

0 comments on commit a5037ed

Please sign in to comment.