aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-06-29 14:15:28 +0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-07-30 09:29:18 -0700
commita3f5835a8e0bd25ed15becd65e01aa3d5ac8d771 (patch)
tree1a0e2020ab915f1e958b8ec6ce50b3c49c5b5115 /drivers/pci/pci-sysfs.c
parent852972acff8f10f3a15679be2059bb94916cba5d (diff)
PCI: pci-sysfs: remove casts from void*
Remove unnesessary casts from void*. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index c9957f68ac9..5935b854917 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -734,7 +734,7 @@ pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr,
{
struct pci_dev *pdev = to_pci_dev(container_of(kobj,
struct device, kobj));
- struct resource *res = (struct resource *)attr->private;
+ struct resource *res = attr->private;
enum pci_mmap_state mmap_type;
resource_size_t start, end;
int i;