aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2019-12-03 23:21:54 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2019-12-03 23:21:54 +0000
commit87b582ef5b31c5893a470b61c217931fc7602da3 (patch)
tree36f8419f61b6cd6a561afc9742e67156ad479b46 /drivers
parentf67a2977de70946c33d18ac75a8bbcea092514a1 (diff)
parentd7b4cd4111ab4cfde60f693a789a290870c02035 (diff)
downloadplatform_external_arm-trusted-firmware-87b582ef5b31c5893a470b61c217931fc7602da3.tar.gz
platform_external_arm-trusted-firmware-87b582ef5b31c5893a470b61c217931fc7602da3.tar.bz2
platform_external_arm-trusted-firmware-87b582ef5b31c5893a470b61c217931fc7602da3.zip
Merge "Enable -Wlogical-op always" into integration
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mentor/i2c/mi2cv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mentor/i2c/mi2cv.c b/drivers/mentor/i2c/mi2cv.c
index 1cdcf7478..b0270c955 100644
--- a/drivers/mentor/i2c/mi2cv.c
+++ b/drivers/mentor/i2c/mi2cv.c
@@ -81,14 +81,14 @@ static void mentor_i2c_interrupt_clear(void)
udelay(1);
}
-static int mentor_i2c_interrupt_get(void)
+static bool mentor_i2c_interrupt_get(void)
{
uint32_t reg;
/* get the interrupt flag bit */
reg = mmio_read_32((uintptr_t)&base->control);
reg &= I2C_CONTROL_IFLG;
- return reg && I2C_CONTROL_IFLG;
+ return (reg != 0U);
}
static int mentor_i2c_wait_interrupt(void)