aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-res.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/setup-res.c')
-rw-r--r--drivers/pci/setup-res.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c
index 81b88bda7930..07f2eddc09ce 100644
--- a/drivers/pci/setup-res.c
+++ b/drivers/pci/setup-res.c
@@ -261,7 +261,6 @@ int pci_assign_resource(struct pci_dev *dev, int resno)
261{ 261{
262 struct resource *res = dev->resource + resno; 262 struct resource *res = dev->resource + resno;
263 resource_size_t align, size; 263 resource_size_t align, size;
264 struct pci_bus *bus;
265 int ret; 264 int ret;
266 265
267 align = pci_resource_alignment(dev, res); 266 align = pci_resource_alignment(dev, res);
@@ -271,7 +270,6 @@ int pci_assign_resource(struct pci_dev *dev, int resno)
271 return -EINVAL; 270 return -EINVAL;
272 } 271 }
273 272
274 bus = dev->bus;
275 size = resource_size(res); 273 size = resource_size(res);
276 ret = _pci_assign_resource(dev, resno, size, align); 274 ret = _pci_assign_resource(dev, resno, size, align);
277 275