powerpc64/ftrace: Drop pointless static qualifier in is_b_op()
authorYueHaibing <yuehaibing@huawei.com>
Tue, 13 Nov 2018 13:56:56 +0000 (13:56 +0000)
committerMichael 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

index 4bf051d3e21e70a61f51136c63c22c1c03c9faae..65248d471ef7d28fb8f74cdbacf4aa8881427579 100644 (file)
@@ -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 */