diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-09-27 09:00:21 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-14 02:41:17 +0100 |
commit | 7a3aad90d331de9b78ea8d292bb4fd4f9ecdfd75 (patch) | |
tree | f0b2755a898f3aa4ed36d828a332c0ef2f467fd1 /drivers/clk/mmp/clk-mmp2.c | |
parent | clk: mmp: Use common error handling code in mmp_clk_register_mix() (diff) | |
download | linux-7a3aad90d331de9b78ea8d292bb4fd4f9ecdfd75.tar.xz linux-7a3aad90d331de9b78ea8d292bb4fd4f9ecdfd75.zip |
clk: mmp: Adjust checks for NULL pointers
The script “checkpatch.pl” pointed information out like the
following:
Comparison to NULL could be written !...
Thus fix the affected source code places.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mmp/clk-mmp2.c')
-rw-r--r-- | drivers/clk/mmp/clk-mmp2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/mmp/clk-mmp2.c b/drivers/clk/mmp/clk-mmp2.c index 038023483b98..7460031714da 100644 --- a/drivers/clk/mmp/clk-mmp2.c +++ b/drivers/clk/mmp/clk-mmp2.c @@ -83,19 +83,19 @@ void __init mmp2_clk_init(phys_addr_t mpmu_phys, phys_addr_t apmu_phys, void __iomem *apbc_base; mpmu_base = ioremap(mpmu_phys, SZ_4K); - if (mpmu_base == NULL) { + if (!mpmu_base) { pr_err("error to ioremap MPMU base\n"); return; } apmu_base = ioremap(apmu_phys, SZ_4K); - if (apmu_base == NULL) { + if (!apmu_base) { pr_err("error to ioremap APMU base\n"); return; } apbc_base = ioremap(apbc_phys, SZ_4K); - if (apbc_base == NULL) { + if (!apbc_base) { pr_err("error to ioremap APBC base\n"); return; } |