Skip to content

Commit a3f5835

Browse files
segoonjbarnes993
authored andcommitted
PCI: pci-sysfs: remove casts from void*
Remove unnesessary casts from void*. Signed-off-by: Kulikov Vasiliy <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
1 parent 852972a commit a3f5835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/pci-sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ pci_mmap_resource(struct kobject *kobj, struct bin_attribute *attr,
734734
{
735735
struct pci_dev *pdev = to_pci_dev(container_of(kobj,
736736
struct device, kobj));
737-
struct resource *res = (struct resource *)attr->private;
737+
struct resource *res = attr->private;
738738
enum pci_mmap_state mmap_type;
739739
resource_size_t start, end;
740740
int i;

0 commit comments

Comments
 (0)