Messages in this thread Patch in this message | | | From | Li zeming <> | Subject | [PATCH] profile: Remove unnecessary ‘0 ’ values from err | Date | Tue, 19 Sep 2023 09:41:26 +0800 |
| |
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
| |