diff options
author | Liju-Clr Chen <liju-clr.chen@mediatek.com> | 2023-02-07 14:00:33 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-02-08 15:39:05 +0000 |
commit | bf5f8214315199c32f9f10f52e235d97f050a3f0 (patch) | |
tree | cd8ab8ed63e6e896949995d1db2ff456e7c56638 | |
parent | 45d51a92ee3a93c0704b4450436d194df376bed1 (diff) |
soc/mediatek: Remove unnecessary !! for boolean variable
Enable is already a boolean, so the !! is not needed.
BUG=None
TEST=build pass.
Change-Id: I25a7cec632f21a258b8364c82e25b59e55ab7453
Signed-off-by: Liju-Clr Chen <liju-clr.chen@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72869
Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Yidi Lin <yidilin@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | src/soc/mediatek/common/mt6359p.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/common/mt6359p.c b/src/soc/mediatek/common/mt6359p.c index de22b3e85d..e2c8e14ca2 100644 --- a/src/soc/mediatek/common/mt6359p.c +++ b/src/soc/mediatek/common/mt6359p.c @@ -316,12 +316,12 @@ u32 mt6359p_get_vsim1_voltage(void) void mt6359p_enable_vpa(bool enable) { - mt6359p_write_field(PMIC_VPA_CON0, !!enable, 0x1, 0); + mt6359p_write_field(PMIC_VPA_CON0, enable, 0x1, 0); } void mt6359p_enable_vsim1(bool enable) { - mt6359p_write_field(PMIC_VSIM1_CON0, !!enable, 0x1, 0); + mt6359p_write_field(PMIC_VSIM1_CON0, enable, 0x1, 0); } static void init_pmif_arb(void) |