pci fdt host drivers: Remove unused variables.

This commit is contained in:
John Baldwin 2022-04-08 17:25:14 -07:00
parent 533b6ecfdc
commit f6abb39b5d
2 changed files with 0 additions and 6 deletions

View file

@ -463,12 +463,9 @@ static int
generic_pcie_activate_resource(device_t dev, device_t child, int type,
int rid, struct resource *r)
{
struct generic_pcie_core_softc *sc;
rman_res_t start, end;
int res;
sc = device_get_softc(dev);
if ((res = rman_activate_resource(r)) != 0)
return (res);

View file

@ -166,11 +166,8 @@ pci_host_generic_setup_fdt(device_t dev)
int
pci_host_generic_attach(device_t dev)
{
struct generic_pcie_fdt_softc *sc;
int error;
sc = device_get_softc(dev);
error = pci_host_generic_setup_fdt(dev);
if (error != 0)
return (error);