diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2020-07-17 16:04:05 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2020-07-17 16:06:54 +0200 |
commit | a0edee635020de84b73c3d0b33a7a7ea9efc6179 (patch) | |
tree | 2d16e241943f1cccffaf9c1431af3e69d5bec856 /drivers/firmware | |
parent | Merge tag 'renesas-drivers-for-v5.9-tag1' of git://git.kernel.org/pub/scm/lin... (diff) | |
download | linux-a0edee635020de84b73c3d0b33a7a7ea9efc6179.tar.xz linux-a0edee635020de84b73c3d0b33a7a7ea9efc6179.zip |
firmware: arm_scmi: Use NULL instead of integer 0 for rate pointer
Kbuild test robot reports the following sparse warning:
drivers/firmware/arm_scmi/clock.c:142:21:
sparse: Using plain integer as NULL pointer
Use NULL pointer instead of integer 0 for rate pointer and fix the
warning.
Link: https://lore.kernel.org/r/20200717140405.17905-1-sudeep.holla@arm.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/arm_scmi/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/clock.c b/drivers/firmware/arm_scmi/clock.c index 6593ce87f420..75e39882746e 100644 --- a/drivers/firmware/arm_scmi/clock.c +++ b/drivers/firmware/arm_scmi/clock.c @@ -139,7 +139,7 @@ static int scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, struct scmi_clock_info *clk) { - u64 *rate = 0; + u64 *rate = NULL; int ret, cnt; bool rate_discrete = false; u32 tot_rate_cnt = 0, rates_flag; |