diff mbox series

[-next] sh: kfr2r09: drop pointless static qualifier in kfr2r09_usb0_gadget_setup()

Message ID 1543628631-99957-1-git-send-email-yuehaibing@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] sh: kfr2r09: drop pointless static qualifier in kfr2r09_usb0_gadget_setup() | expand

Commit Message

Yue Haibing Dec. 1, 2018, 1:43 a.m. UTC
There is no need to have the 'struct clk *camera_clk' variable static
since new value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 arch/sh/boards/mach-kfr2r09/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/sh/boards/mach-kfr2r09/setup.c b/arch/sh/boards/mach-kfr2r09/setup.c
index c70bc78..203d249 100644
--- a/arch/sh/boards/mach-kfr2r09/setup.c
+++ b/arch/sh/boards/mach-kfr2r09/setup.c
@@ -477,7 +477,7 @@  static int kfr2r09_usb0_gadget_setup(void)
 
 static int __init kfr2r09_devices_setup(void)
 {
-	static struct clk *camera_clk;
+	struct clk *camera_clk;
 
 	/* register board specific self-refresh code */
 	sh_mobile_register_self_refresh(SUSP_SH_STANDBY | SUSP_SH_SF |