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

Jingyu Wang jingyuwang_vip at 163.com
Sat Sep 17 19:14:10 PDT 2022


There is no need to initialize the assignment.

Signed-off-by: Jingyu Wang <jingyuwang_vip at 163.com>
---
 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




More information about the linux-arm-kernel mailing list