linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 09/25] pci-sysfs: remove casts from void*
@ 2010-06-29 10:15 Kulikov Vasiliy
  2010-07-02 21:30 ` Jesse Barnes
  0 siblings, 1 reply; 2+ messages in thread
From: Kulikov Vasiliy @ 2010-06-29 10:15 UTC (permalink / raw)
  To: Kernel Janitors
  Cc: Jesse Barnes, Greg Kroah-Hartman, Chris Wright,
	Michael S. Tsirkin, Michal Schmidt, linux-pci, linux-kernel

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 09/25] pci-sysfs: remove casts from void*
  2010-06-29 10:15 [PATCH 09/25] pci-sysfs: remove casts from void* Kulikov Vasiliy
@ 2010-07-02 21:30 ` Jesse Barnes
  0 siblings, 0 replies; 2+ messages in thread
From: Jesse Barnes @ 2010-07-02 21:30 UTC (permalink / raw)
  To: Kulikov Vasiliy
  Cc: Kernel Janitors, Greg Kroah-Hartman, Chris Wright,
	Michael S. Tsirkin, Michal Schmidt, linux-pci, linux-kernel

On Tue, 29 Jun 2010 14:15:28 +0400
Kulikov Vasiliy <segooon@gmail.com> wrote:

> Remove unnesessary casts from void*.
> 
> Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-02 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-29 10:15 [PATCH 09/25] pci-sysfs: remove casts from void* Kulikov Vasiliy
2010-07-02 21:30 ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).