mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] profile: Remove unnecessary ‘0’ values from err
@ 2023-09-19  1:41 Li zeming
  2023-10-12  6:27 ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2023-09-19  1:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Li zeming

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

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 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


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

end of thread, other threads:[~2023-10-12  6:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-19  1:41 [PATCH] profile: Remove unnecessary ‘0’ values from err Li zeming
2023-10-12  6:27 ` Dan Carpenter

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

all inboxes | Powered by JetHome®