From: Andi Shyti Date: Fri, 18 Apr 2025 21:16:35 +0000 (+0200) Subject: i2c: iproc: Remove unnecessary double negation X-Git-Tag: v6.16-rc1~112^2~1^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=25909e19c22b0f5a78bc7667598f849c86af91bd;p=thirdparty%2Flinux.git 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: Andi Shyti --- diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index bd8233ebf6fc1..63bc3c8f49d3d 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -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; }