projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e734dd6
)
powerpc64/ftrace: Drop pointless static qualifier in is_b_op()
author
YueHaibing
<yuehaibing@huawei.com>
Tue, 13 Nov 2018 13:56:56 +0000
(13:56 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:22 +0000
(17:11 +1100)
There is no need to have the 'intoffset' variable static since new value
always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/trace/ftrace.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/trace/ftrace.c
b/arch/powerpc/kernel/trace/ftrace.c
index 4bf051d3e21e70a61f51136c63c22c1c03c9faae..65248d471ef7d28fb8f74cdbacf4aa8881427579 100644
(file)
--- a/
arch/powerpc/kernel/trace/ftrace.c
+++ b/
arch/powerpc/kernel/trace/ftrace.c
@@
-107,7
+107,7
@@
static int is_b_op(unsigned int op)
static unsigned long find_bl_target(unsigned long ip, unsigned int op)
{
-
static
int offset;
+ int offset;
offset = (op & 0x03fffffc);
/* make it signed */