diff options
author | matt mooney <mfm@muteddisk.com> | 2010-09-14 13:27:39 +0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2010-09-19 07:06:17 +0400 |
commit | af96f8a340525f24abecc25848a07fff7636a53e (patch) | |
tree | a9fead3c3f3302f4818bbac5d0cc1b494df4e1b5 | |
parent | 31019075f41c785eff7f38c62e4c700af019fdb7 (diff) | |
download | linux-af96f8a340525f24abecc25848a07fff7636a53e.tar.xz |
alpha: remove unnecessary cast from void* in assignment.
Acked-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | arch/alpha/kernel/pci-sysfs.c | 2 | ||||
-rw-r--r-- | 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 738fc824e2ea..b899e95f79fd 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 4afc1a1e2e5a..f0df3fbd8402 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; |