File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
drivers/net/ethernet/mellanox/mlxsw Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1530,7 +1530,7 @@ mlxsw_pci_reset(struct mlxsw_pci *mlxsw_pci, const struct pci_device_id *id)
1530
1530
{
1531
1531
struct pci_dev * pdev = mlxsw_pci -> pdev ;
1532
1532
char mcam_pl [MLXSW_REG_MCAM_LEN ];
1533
- bool pci_reset_supported ;
1533
+ bool pci_reset_supported = false ;
1534
1534
u32 sys_status ;
1535
1535
int err ;
1536
1536
@@ -1548,11 +1548,9 @@ mlxsw_pci_reset(struct mlxsw_pci *mlxsw_pci, const struct pci_device_id *id)
1548
1548
mlxsw_reg_mcam_pack (mcam_pl ,
1549
1549
MLXSW_REG_MCAM_FEATURE_GROUP_ENHANCED_FEATURES );
1550
1550
err = mlxsw_reg_query (mlxsw_pci -> core , MLXSW_REG (mcam ), mcam_pl );
1551
- if (err )
1552
- return err ;
1553
-
1554
- mlxsw_reg_mcam_unpack (mcam_pl , MLXSW_REG_MCAM_PCI_RESET ,
1555
- & pci_reset_supported );
1551
+ if (!err )
1552
+ mlxsw_reg_mcam_unpack (mcam_pl , MLXSW_REG_MCAM_PCI_RESET ,
1553
+ & pci_reset_supported );
1556
1554
1557
1555
if (pci_reset_supported ) {
1558
1556
pci_dbg (pdev , "Starting PCI reset flow\n" );
You can’t perform that action at this time.
0 commit comments