Skip to content

Commit a0edee6

Browse files
sudeep-hollaarndb
authored andcommitted
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/[email protected] Reported-by: kernel test robot <[email protected]> Signed-off-by: Sudeep Holla <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent a3cff3e commit a0edee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/arm_scmi/clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static int
139139
scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id,
140140
struct scmi_clock_info *clk)
141141
{
142-
u64 *rate = 0;
142+
u64 *rate = NULL;
143143
int ret, cnt;
144144
bool rate_discrete = false;
145145
u32 tot_rate_cnt = 0, rates_flag;

0 commit comments

Comments
 (0)