diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-19 12:02:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-19 10:42:19 -0700 |
commit | 9333f207920336575cba4ed60603c1cdb79ace4f (patch) | |
tree | 44026ef1eaaf4293051a20f9be8856e15ff6989e /drivers/net/ethernet/rocker | |
parent | 1107a674cc0499ba9b6b65cef0632ac7a0fa771c (diff) | |
download | linux-9333f207920336575cba4ed60603c1cdb79ace4f.tar.gz linux-9333f207920336575cba4ed60603c1cdb79ace4f.tar.bz2 linux-9333f207920336575cba4ed60603c1cdb79ace4f.zip |
rocker: Drop pointless static qualifier
There is no need to have the 'struct rocker_desc_info *desc_info'
variable static since new value always be assigned before use it.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker')
-rw-r--r-- | drivers/net/ethernet/rocker/rocker_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/rocker/rocker_main.c b/drivers/net/ethernet/rocker/rocker_main.c index 8721c0506af3..beb06628f22d 100644 --- a/drivers/net/ethernet/rocker/rocker_main.c +++ b/drivers/net/ethernet/rocker/rocker_main.c @@ -371,7 +371,7 @@ static void rocker_desc_cookie_ptr_set(const struct rocker_desc_info *desc_info, static struct rocker_desc_info * rocker_desc_head_get(const struct rocker_dma_ring_info *info) { - static struct rocker_desc_info *desc_info; + struct rocker_desc_info *desc_info; u32 head = __pos_inc(info->head, info->size); desc_info = &info->desc_info[info->head]; @@ -402,7 +402,7 @@ static void rocker_desc_head_set(const struct rocker *rocker, static struct rocker_desc_info * rocker_desc_tail_get(struct rocker_dma_ring_info *info) { - static struct rocker_desc_info *desc_info; + struct rocker_desc_info *desc_info; if (info->tail == info->head) return NULL; /* nothing to be done between head and tail */ |