2010-06-29 10:15:38

by Kulikov Vasiliy

[permalink] [raw]
Subject: [PATCH 09/25] pci-sysfs: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <[email protected]>
---
drivers/pci/pci-sysfs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index afd2fbf..7f8bc8c 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;
--
1.7.0.4


2010-07-02 21:33:11

by Jesse Barnes

[permalink] [raw]
Subject: Re: [PATCH 09/25] pci-sysfs: remove casts from void*

On Tue, 29 Jun 2010 14:15:28 +0400
Kulikov Vasiliy <[email protected]> wrote:

> Remove unnesessary casts from void*.
>
> Signed-off-by: Kulikov Vasiliy <[email protected]>
> ---
> drivers/pci/pci-sysfs.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
> index afd2fbf..7f8bc8c 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;

Applied to my linux-next branch, thanks.

--
Jesse Barnes, Intel Open Source Technology Center