diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-09-13 09:57:30 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-09-14 12:49:44 +0000 |
commit | 0f1fb8a8685148e2bad299285a62e98a59c9f9b4 (patch) | |
tree | ae063e5ed4af95cfab56858a1a4eb981e214824a /src/soc/mediatek/mt8192 | |
parent | 5e6b0f0cac4ba5cde6114325ea69ec0e98c7e08f (diff) |
soc/mediatek: Use "if (!ptr)" in preference to "if (ptr == NULL)"
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: I9cf4097518034fa4c3ae1899840ae3a276936f80
Reviewed-on: https://review.coreboot.org/c/coreboot/+/67581
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8192')
-rw-r--r-- | src/soc/mediatek/mt8192/srclken_rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8192/srclken_rc.c b/src/soc/mediatek/mt8192/srclken_rc.c index f6790c6898..0c5b8896d9 100644 --- a/src/soc/mediatek/mt8192/srclken_rc.c +++ b/src/soc/mediatek/mt8192/srclken_rc.c @@ -118,7 +118,7 @@ static void pmic_read(u32 addr, u32 *rdata) { static struct pmif *pmif_arb; - if (pmif_arb == NULL) + if (!pmif_arb) pmif_arb = get_pmif_controller(PMIF_SPI, 0); pmif_arb->read(pmif_arb, 0, addr, rdata); |