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

Commit ed30933e authored by Cong Ding's avatar Cong Ding Committed by Vinod Koul
Browse files

dma: remove unnecessary null pointer check in mmp_pdma.c



the pointer cfg is dereferenced in line 594, so it's no reason to check null
again in line 620.

Signed-off-by: default avatarCong Ding <dinggnu@gmail.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 661f7cb5
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -617,10 +617,8 @@ static int mmp_pdma_control(struct dma_chan *dchan, enum dma_ctrl_cmd cmd,
		else if (maxburst == 32)
			chan->dcmd |= DCMD_BURST32;

		if (cfg) {
		chan->dir = cfg->direction;
		chan->drcmr = cfg->slave_id;
		}
		chan->dev_addr = addr;
		break;
	default: