Message ID | 20230608075606.3590744-1-thierry.reding@gmail.com |
---|---|
State | New |
Headers | show |
Series | i2c: tegra: Fix failure during probe deferral cleanup | expand |
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index f155e9028f94..0eab199900ae 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -458,10 +458,8 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) * with existing devicetrees. */ i2c_dev->dma_chan = dma_request_chan(i2c_dev->dev, "tx"); - if (IS_ERR(i2c_dev->dma_chan)) { - err = PTR_ERR(i2c_dev->dma_chan); - goto err_out; - } + if (IS_ERR(i2c_dev->dma_chan)) + return PTR_ERR(i2c_dev->dma_chan); i2c_dev->dma_dev = i2c_dev->dma_chan->device->dev; i2c_dev->dma_buf_size = i2c_dev->hw->quirks->max_write_len +