Commit 90ebd0eb authored by Philipp Zabel's avatar Philipp Zabel Committed by Wolfram Sang

i2c: imx: remove unused return value assignments

The ret variable is set and never used in the error path of i2c_imx_dma_request.
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Acked-by: default avatarFugang Duan <B38611@freescale.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 393cc1ce
...@@ -295,7 +295,6 @@ static void i2c_imx_dma_request(struct imx_i2c_struct *i2c_imx, ...@@ -295,7 +295,6 @@ static void i2c_imx_dma_request(struct imx_i2c_struct *i2c_imx,
dma->chan_tx = dma_request_slave_channel(dev, "tx"); dma->chan_tx = dma_request_slave_channel(dev, "tx");
if (!dma->chan_tx) { if (!dma->chan_tx) {
dev_dbg(dev, "can't request DMA tx channel\n"); dev_dbg(dev, "can't request DMA tx channel\n");
ret = -ENODEV;
goto fail_al; goto fail_al;
} }
...@@ -313,7 +312,6 @@ static void i2c_imx_dma_request(struct imx_i2c_struct *i2c_imx, ...@@ -313,7 +312,6 @@ static void i2c_imx_dma_request(struct imx_i2c_struct *i2c_imx,
dma->chan_rx = dma_request_slave_channel(dev, "rx"); dma->chan_rx = dma_request_slave_channel(dev, "rx");
if (!dma->chan_rx) { if (!dma->chan_rx) {
dev_dbg(dev, "can't request DMA rx channel\n"); dev_dbg(dev, "can't request DMA rx channel\n");
ret = -ENODEV;
goto fail_tx; goto fail_tx;
} }
......
Markdown is supported
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