diff options
author | Jan Beulich <JBeulich@suse.com> | 2016-07-06 08:58:58 +0200 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2016-07-06 11:35:38 +0200 |
commit | 585203609c894db11dea724b743c04d0c9927f39 (patch) | |
tree | 4d13634e93f959c3bf5e6c6fe95ea86424acf12b /drivers/xen/xen-pciback | |
parent | xen-pciback: simplify determination of 64-bit memory resource (diff) | |
download | linux-585203609c894db11dea724b743c04d0c9927f39.tar.xz linux-585203609c894db11dea724b743c04d0c9927f39.zip |
xen-pciback: use const and unsigned in bar_init()
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen/xen-pciback')
-rw-r--r-- | drivers/xen/xen-pciback/conf_space_header.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xen-pciback/conf_space_header.c b/drivers/xen/xen-pciback/conf_space_header.c index bfa610d02443..5fbfd9cfb6d6 100644 --- a/drivers/xen/xen-pciback/conf_space_header.c +++ b/drivers/xen/xen-pciback/conf_space_header.c @@ -211,8 +211,8 @@ static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data) static void *bar_init(struct pci_dev *dev, int offset) { - int pos; - struct resource *res = dev->resource; + unsigned int pos; + const struct resource *res = dev->resource; struct pci_bar_info *bar = kzalloc(sizeof(*bar), GFP_KERNEL); if (!bar) |