Commit
372900faf8 ("x86/MSI-X: reduce fiddling with control register
during restore") introduced de-references of pdev before it gets
checked against NULL. Instead of deferring the de-references, drop
the pointless check - both call sites do that check already.
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
if ( !use_msi )
return -EOPNOTSUPP;
- if ( !pdev )
- return -EINVAL;
-
ret = xsm_resource_setup_pci(XSM_PRIV,
(pdev->seg << 16) | (pdev->bus << 8) |
pdev->devfn);