staging: rtl8712: drop pointless static qualifier in r8712_efuse_pg_packet_write()
authorYueHaibing <yuehaibing@huawei.com>
Mon, 21 Jan 2019 07:53:13 +0000 (07:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 10:32:36 +0000 (11:32 +0100)
There is no need to have the 'intrepeat_times' variable static since new
value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_efuse.c

index 8bc45ffd30293c0732c6e10eae6dc245a8933c9e..39eb74374d0b902288facc21f297748ada92e2b2 100644 (file)
@@ -358,7 +358,7 @@ u8 r8712_efuse_pg_packet_write(struct _adapter *padapter, const u8 offset,
        u8 pg_header = 0;
        u16 efuse_addr = 0, curr_size = 0;
        u8 efuse_data, target_word_cnts = 0;
-       static int repeat_times;
+       int repeat_times;
        int sub_repeat;
        u8 bResult = true;