projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4aba34
)
bpf: Remove unused variable "prev_state"
author
Ying Zhang
<yingzhang098@163.com>
Tue, 21 May 2024 16:17:02 +0000
(16:17 +0000)
committer
Andrii Nakryiko
<andrii@kernel.org>
Tue, 21 May 2024 17:48:19 +0000
(10:48 -0700)
The variable "prev_state" is not used for any actual operations
v2: Fix commit message and description.
Signed-off-by: Ying Zhang <yingzhang098@163.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link:
https://lore.kernel.org/bpf/20240521161702.4339-1-yingzhang098@163.com
samples/bpf/cpustat_kern.c
patch
|
blob
|
history
diff --git
a/samples/bpf/cpustat_kern.c
b/samples/bpf/cpustat_kern.c
index
944f13f
..
7ec7143
100644
(file)
--- a/
samples/bpf/cpustat_kern.c
+++ b/
samples/bpf/cpustat_kern.c
@@
-211,7
+211,7
@@
int bpf_prog1(struct cpu_args *ctx)
SEC("tracepoint/power/cpu_frequency")
int bpf_prog2(struct cpu_args *ctx)
{
- u64 *pts, *cstate, *pstate,
prev_state,
cur_ts, delta;
+ u64 *pts, *cstate, *pstate, cur_ts, delta;
u32 key, cpu, pstate_idx;
u64 *val;
@@
-232,7
+232,6
@@
int bpf_prog2(struct cpu_args *ctx)
if (!cstate)
return 0;
- prev_state = *pstate;
*pstate = ctx->state;
if (!*pts) {