mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
ice: Delete always true check of PF pointer
commit2ff04286a9
upstream. PF pointer is always valid when PCI core calls its .shutdown() and .remove() callbacks. There is no need to check it again. Fixes:837f08fdec
("ice: Add basic driver framework for Intel(R) E800 Series") Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fe65cecd27
commit
cade5d7a28
1 changed files with 0 additions and 3 deletions
|
@ -4361,9 +4361,6 @@ static void ice_remove(struct pci_dev *pdev)
|
|||
struct ice_pf *pf = pci_get_drvdata(pdev);
|
||||
int i;
|
||||
|
||||
if (!pf)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ICE_MAX_RESET_WAIT; i++) {
|
||||
if (!ice_is_reset_in_progress(pf->state))
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue