Skip to content

Commit 25909e1

Browse files
Andi ShytiAndi Shyti
authored andcommitted
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/[email protected] Signed-off-by: Andi Shyti <[email protected]>
1 parent d7d58a7 commit 25909e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-bcm-iproc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,8 +836,8 @@ static int bcm_iproc_i2c_xfer_internal(struct bcm_iproc_i2c_dev *iproc_i2c,
836836
struct i2c_msg *msg = &msgs[0];
837837

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

0 commit comments

Comments
 (0)