[PATCH] profile: Remove unnecessary ‘0’ values from err

From: Li zeming
Date: Mon Sep 18 2023 - 21:41:51 EST


err is assigned first, so it does not need to initialize the assignment.

Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
---
kernel/profile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/profile.c b/kernel/profile.c
index 8a77769bc4b4..87acc7a9d7e2 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -465,7 +465,7 @@ int __ref create_proc_profile(void)
enum cpuhp_state online_state;
#endif

- int err = 0;
+ int err;

if (!prof_on)
return 0;
--
2.18.2