* [PATCH 2/4] alpha: remove cast from void*
@ 2010-09-14 5:27 matt mooney
2010-09-14 9:20 ` Jan-Benedict Glaw
2010-09-19 4:52 ` Matt Turner
0 siblings, 2 replies; 3+ messages in thread
From: matt mooney @ 2010-09-14 5:27 UTC (permalink / raw)
To: Richard Henderson
Cc: Ivan Kokshaysky, Matt Turner, Tejun Heo, Christoph Lameter,
Jan-Benedict Glaw, Andrew Morton, Alexey Dobriyan, linux-alpha,
kernel-janitors
Unnecessary cast from void* in assignment.
Signed-off-by: matt mooney <mfm@muteddisk.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/4] alpha: remove cast from void*
2010-09-14 5:27 [PATCH 2/4] alpha: remove cast from void* matt mooney
@ 2010-09-14 9:20 ` Jan-Benedict Glaw
2010-09-19 4:52 ` Matt Turner
1 sibling, 0 replies; 3+ messages in thread
From: Jan-Benedict Glaw @ 2010-09-14 9:20 UTC (permalink / raw)
To: matt mooney
Cc: Richard Henderson, Ivan Kokshaysky, Matt Turner, Tejun Heo,
Christoph Lameter, Andrew Morton, Alexey Dobriyan, linux-alpha,
kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 515 bytes --]
On Mon, 2010-09-13 22:27:39 -0700, matt mooney <mfm@muteddisk.com> wrote:
> Unnecessary cast from void* in assignment.
>
> Signed-off-by: matt mooney <mfm@muteddisk.com>
The second part (regarding srm-env) is
ACKed-by: Jan-Benedict Glaw <jbglaw@lug-owl.de>
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481
Signature of: Lauf nicht vor Deinem Glück davon:
the second : Es könnte hinter Dir stehen!
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/4] alpha: remove cast from void*
2010-09-14 5:27 [PATCH 2/4] alpha: remove cast from void* matt mooney
2010-09-14 9:20 ` Jan-Benedict Glaw
@ 2010-09-19 4:52 ` Matt Turner
1 sibling, 0 replies; 3+ messages in thread
From: Matt Turner @ 2010-09-19 4:52 UTC (permalink / raw)
To: matt mooney
Cc: Richard Henderson, Ivan Kokshaysky, Tejun Heo, Christoph Lameter,
Jan-Benedict Glaw, Andrew Morton, Alexey Dobriyan, linux-alpha,
kernel-janitors
On Tue, Sep 14, 2010 at 1:27 AM, matt mooney <mfm@muteddisk.com> wrote:
> Unnecessary cast from void* in assignment.
>
> Signed-off-by: matt mooney <mfm@muteddisk.com>
> ---
> 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 linux-alpha" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-19 4:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14 5:27 [PATCH 2/4] alpha: remove cast from void* matt mooney
2010-09-14 9:20 ` Jan-Benedict Glaw
2010-09-19 4:52 ` Matt Turner
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).