[PATCH] firmware: arm_scmi: remove unnecessary 'NULL' values from pointer

From: Jingyu Wang
Date: Sat Sep 17 2022 - 22:15:15 EST


There is no need to initialize the assignment.

Signed-off-by: Jingyu Wang <jingyuwang_vip@xxxxxxx>
---
drivers/firmware/arm_scmi/perf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c
index ecf5c4de851b..a8654d3d5ff9 100644
--- a/drivers/firmware/arm_scmi/perf.c
+++ b/drivers/firmware/arm_scmi/perf.c
@@ -723,7 +723,7 @@ static void *scmi_perf_fill_custom_report(const struct scmi_protocol_handle *ph,
const void *payld, size_t payld_sz,
void *report, u32 *src_id)
{
- void *rep = NULL;
+ void *rep;

switch (evt_id) {
case SCMI_EVENT_PERFORMANCE_LIMITS_CHANGED:

base-commit: d5538ab91d3a9a237805be6f8c6c272af2987995
--
2.34.1