提交 af96f8a3 编写于 作者: M matt mooney 提交者: Matt Turner

alpha: remove unnecessary cast from void* in assignment.

Acked-by: NJan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: Nmatt mooney <mfm@muteddisk.com>
Signed-off-by: NMatt Turner <mattst88@gmail.com>
上级 31019075
...@@ -66,7 +66,7 @@ static int pci_mmap_resource(struct kobject *kobj, ...@@ -66,7 +66,7 @@ static int pci_mmap_resource(struct kobject *kobj,
{ {
struct pci_dev *pdev = to_pci_dev(container_of(kobj, struct pci_dev *pdev = to_pci_dev(container_of(kobj,
struct device, kobj)); struct device, kobj));
struct resource *res = (struct resource *)attr->private; struct resource *res = attr->private;
enum pci_mmap_state mmap_type; enum pci_mmap_state mmap_type;
struct pci_bus_region bar; struct pci_bus_region bar;
int i; int i;
......
...@@ -87,7 +87,7 @@ static int srm_env_proc_show(struct seq_file *m, void *v) ...@@ -87,7 +87,7 @@ static int srm_env_proc_show(struct seq_file *m, void *v)
srm_env_t *entry; srm_env_t *entry;
char *page; char *page;
entry = (srm_env_t *)m->private; entry = m->private;
page = (char *)__get_free_page(GFP_USER); page = (char *)__get_free_page(GFP_USER);
if (!page) if (!page)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册