Skip to content

Commit ddc4d23

Browse files
YueHaibingdavem330
authored andcommitted
liquidio CN23XX: Remove set but not used variable 'ring_flag'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c: In function 'cn23xx_setup_octeon_vf_device': drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c:619:20: warning: variable 'ring_flag' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4887522 commit ddc4d23

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static void cn23xx_disable_vf_interrupt(struct octeon_device *oct, u8 intr_flag)
616616
int cn23xx_setup_octeon_vf_device(struct octeon_device *oct)
617617
{
618618
struct octeon_cn23xx_vf *cn23xx = (struct octeon_cn23xx_vf *)oct->chip;
619-
u32 rings_per_vf, ring_flag;
619+
u32 rings_per_vf;
620620
u64 reg_val;
621621

622622
if (octeon_map_pci_barx(oct, 0, 0))
@@ -634,8 +634,6 @@ int cn23xx_setup_octeon_vf_device(struct octeon_device *oct)
634634

635635
rings_per_vf = reg_val & CN23XX_PKT_INPUT_CTL_RPVF_MASK;
636636

637-
ring_flag = 0;
638-
639637
cn23xx->conf = oct_get_config_info(oct, LIO_23XX);
640638
if (!cn23xx->conf) {
641639
dev_err(&oct->pci_dev->dev, "%s No Config found for CN23XX\n",

0 commit comments

Comments
 (0)