Skip to content

Commit 9333f20

Browse files
YueHaibingdavem330
authored andcommitted
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>
1 parent 1107a67 commit 9333f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/rocker/rocker_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static void rocker_desc_cookie_ptr_set(const struct rocker_desc_info *desc_info,
371371
static struct rocker_desc_info *
372372
rocker_desc_head_get(const struct rocker_dma_ring_info *info)
373373
{
374-
static struct rocker_desc_info *desc_info;
374+
struct rocker_desc_info *desc_info;
375375
u32 head = __pos_inc(info->head, info->size);
376376

377377
desc_info = &info->desc_info[info->head];
@@ -402,7 +402,7 @@ static void rocker_desc_head_set(const struct rocker *rocker,
402402
static struct rocker_desc_info *
403403
rocker_desc_tail_get(struct rocker_dma_ring_info *info)
404404
{
405-
static struct rocker_desc_info *desc_info;
405+
struct rocker_desc_info *desc_info;
406406

407407
if (info->tail == info->head)
408408
return NULL; /* nothing to be done between head and tail */

0 commit comments

Comments
 (0)