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

Commit ddfe4d0c authored by Vinod Koul's avatar Vinod Koul
Browse files

dmaengine: edma: remove redundant conditions



in edma_callback, driver was doing redundant check for desc, so remove that

Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 240eb916
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -726,7 +726,7 @@ static void edma_callback(unsigned ch_num, u16 ch_status, void *data)
	edesc = echan->edesc;

	/* Pause the channel for non-cyclic */
	if (!edesc || (edesc && !edesc->cyclic))
	if (!edesc || !edesc->cyclic)
		edma_pause(echan->ch_num);

	switch (ch_status) {