OSDN Git Service

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 4bf051d..65248d4 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 */