public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware: arm_scmi: remove unnecessary 'NULL' values from pointer
@ 2022-09-18  2:14 Jingyu Wang
  2022-09-18  4:32 ` kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: Jingyu Wang @ 2022-09-18  2:14 UTC (permalink / raw)
  To: sudeep.holla, cristian.marussi, linux-arm-kernel
  Cc: linux-kernel, Jingyu Wang

There is no need to initialize the assignment.

Signed-off-by: Jingyu Wang <jingyuwang_vip@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-18  4:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-18  2:14 [PATCH] firmware: arm_scmi: remove unnecessary 'NULL' values from pointer Jingyu Wang
2022-09-18  4:32 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox