Commit 9333f207 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

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: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1107a674
...@@ -371,7 +371,7 @@ static void rocker_desc_cookie_ptr_set(const struct rocker_desc_info *desc_info, ...@@ -371,7 +371,7 @@ static void rocker_desc_cookie_ptr_set(const struct rocker_desc_info *desc_info,
static struct rocker_desc_info * static struct rocker_desc_info *
rocker_desc_head_get(const struct rocker_dma_ring_info *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); u32 head = __pos_inc(info->head, info->size);
desc_info = &info->desc_info[info->head]; desc_info = &info->desc_info[info->head];
...@@ -402,7 +402,7 @@ static void rocker_desc_head_set(const struct rocker *rocker, ...@@ -402,7 +402,7 @@ static void rocker_desc_head_set(const struct rocker *rocker,
static struct rocker_desc_info * static struct rocker_desc_info *
rocker_desc_tail_get(struct rocker_dma_ring_info *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) if (info->tail == info->head)
return NULL; /* nothing to be done between head and tail */ return NULL; /* nothing to be done between head and tail */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment