mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 07:27:23 -04:00
net: hns3: remove unnecessary "static" of local variables in function
Some local variable declarations are no need to add "static", so remove it. Signed-off-by: Hao Chen <chenhao288@hisilicon.com> Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7f2f8cf6ef
commit
1026b1534f
@@ -867,7 +867,7 @@ static void
|
||||
hns3_dbg_dev_caps(struct hnae3_handle *h, char *buf, int len, int *pos)
|
||||
{
|
||||
struct hnae3_ae_dev *ae_dev = pci_get_drvdata(h->pdev);
|
||||
static const char * const str[] = {"no", "yes"};
|
||||
const char * const str[] = {"no", "yes"};
|
||||
unsigned long *caps = ae_dev->caps;
|
||||
u32 i, state;
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ static bool hclgevf_cmd_csq_done(struct hclgevf_hw *hw)
|
||||
|
||||
static bool hclgevf_is_special_opcode(u16 opcode)
|
||||
{
|
||||
static const u16 spec_opcode[] = {0x30, 0x31, 0x32};
|
||||
const u16 spec_opcode[] = {0x30, 0x31, 0x32};
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(spec_opcode); i++) {
|
||||
|
||||
Reference in New Issue
Block a user