Skip to content
Commit 8267f16e authored by Sascha Hauer's avatar Sascha Hauer Committed by Dan Williams
Browse files

dma: imx-dma: fix signedness bug



mxdmac->channel was unsigned, so check (imxdmac->channel < 0) for
failed imx_dma_request_by_prio() made no sence.  Explicitly check
signed values.
Also, fix uninitialzed use of ret.

Signed-off-by: default avatarVasiliy Kulikov <segooon@gmail.com>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 42e55736
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