Commit 25909e19 authored by Andi Shyti's avatar Andi Shyti Committed by Andi Shyti
Browse files

i2c: iproc: Remove unnecessary double negation

True is true when greater than '0', no need for double negation
inside the if statement.

Link: https://lore.kernel.org/r/20250418211635.2666234-11-andi.shyti@kernel.org


Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent d7d58a72
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -836,8 +836,8 @@ static int bcm_iproc_i2c_xfer_internal(struct bcm_iproc_i2c_dev *iproc_i2c,
	struct i2c_msg *msg = &msgs[0];

	/* check if bus is busy */
	if (!!(iproc_i2c_rd_reg(iproc_i2c,
				M_CMD_OFFSET) & BIT(M_CMD_START_BUSY_SHIFT))) {
	if (iproc_i2c_rd_reg(iproc_i2c,
			     M_CMD_OFFSET) & BIT(M_CMD_START_BUSY_SHIFT)) {
		dev_warn(iproc_i2c->device, "bus is busy\n");
		return -EBUSY;
	}