Commit 2a250d45 authored by Dan Carpenter's avatar Dan Carpenter Committed by Wolfram Sang
Browse files

i2c: qcom-geni: remove unnecessary conditions



We know that "ret" is a negative error code at this point so there is
no need to check.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 550b1139
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -727,7 +727,6 @@ static int setup_gpi_dma(struct geni_i2c_dev *gi2c)
	if (IS_ERR(gi2c->tx_c)) {
		ret = dev_err_probe(gi2c->se.dev, PTR_ERR(gi2c->tx_c),
				    "Failed to get tx DMA ch\n");
		if (ret < 0)
		goto err_tx;
	}

@@ -735,7 +734,6 @@ static int setup_gpi_dma(struct geni_i2c_dev *gi2c)
	if (IS_ERR(gi2c->rx_c)) {
		ret = dev_err_probe(gi2c->se.dev, PTR_ERR(gi2c->rx_c),
				    "Failed to get rx DMA ch\n");
		if (ret < 0)
		goto err_rx;
	}