On Tue, Sep 14, 2010 at 1:27 AM, matt mooney <mfm@xxxxxxxxxxxxx> wrote: > Unnecessary cast from void* in assignment. > > Signed-off-by: matt mooney <mfm@xxxxxxxxxxxxx> > --- > arch/alpha/kernel/pci-sysfs.c | 2 +- > arch/alpha/kernel/srm_env.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/alpha/kernel/pci-sysfs.c b/arch/alpha/kernel/pci-sysfs.c > index 738fc82..b899e95 100644 > --- a/arch/alpha/kernel/pci-sysfs.c > +++ b/arch/alpha/kernel/pci-sysfs.c > @@ -66,7 +66,7 @@ static int pci_mmap_resource(struct kobject *kobj, > { > 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; > struct pci_bus_region bar; > int i; > diff --git a/arch/alpha/kernel/srm_env.c b/arch/alpha/kernel/srm_env.c > index 4afc1a1..f0df3fb 100644 > --- a/arch/alpha/kernel/srm_env.c > +++ b/arch/alpha/kernel/srm_env.c > @@ -87,7 +87,7 @@ static int srm_env_proc_show(struct seq_file *m, void *v) > srm_env_t *entry; > char *page; > > - entry = (srm_env_t *)m->private; > + entry = m->private; > page = (char *)__get_free_page(GFP_USER); > if (!page) > return -ENOMEM; > -- > 1.7.2.1 Thanks! Applied. -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html