* [PATCH] topology: removed kzalloc return value cast
@ 2013-03-10 13:35 Mihai Stirbat
2013-03-13 16:29 ` Vincent Guittot
0 siblings, 1 reply; 2+ messages in thread
From: Mihai Stirbat @ 2013-03-10 13:35 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Mihai Stirbat <mihai.stirbat@gmail.com>
---
arch/arm/kernel/topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index 79282eb..f10316b 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -100,7 +100,7 @@ static void __init parse_dt_topology(void)
int alloc_size, cpu = 0;
alloc_size = nr_cpu_ids * sizeof(struct cpu_capacity);
- cpu_capacity = (struct cpu_capacity *)kzalloc(alloc_size, GFP_NOWAIT);
+ cpu_capacity = kzalloc(alloc_size, GFP_NOWAIT);
while ((cn = of_find_node_by_type(cn, "cpu"))) {
const u32 *rate, *reg;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] topology: removed kzalloc return value cast
2013-03-10 13:35 [PATCH] topology: removed kzalloc return value cast Mihai Stirbat
@ 2013-03-13 16:29 ` Vincent Guittot
0 siblings, 0 replies; 2+ messages in thread
From: Vincent Guittot @ 2013-03-13 16:29 UTC (permalink / raw)
To: linux-arm-kernel
On 10 March 2013 21:35, Mihai Stirbat <mihai.stirbat@gmail.com> wrote:
> Signed-off-by: Mihai Stirbat <mihai.stirbat@gmail.com>
> ---
> arch/arm/kernel/topology.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
> index 79282eb..f10316b 100644
> --- a/arch/arm/kernel/topology.c
> +++ b/arch/arm/kernel/topology.c
> @@ -100,7 +100,7 @@ static void __init parse_dt_topology(void)
> int alloc_size, cpu = 0;
>
> alloc_size = nr_cpu_ids * sizeof(struct cpu_capacity);
> - cpu_capacity = (struct cpu_capacity *)kzalloc(alloc_size, GFP_NOWAIT);
> + cpu_capacity = kzalloc(alloc_size, GFP_NOWAIT);
you're right
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
>
> while ((cn = of_find_node_by_type(cn, "cpu"))) {
> const u32 *rate, *reg;
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-13 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10 13:35 [PATCH] topology: removed kzalloc return value cast Mihai Stirbat
2013-03-13 16:29 ` Vincent Guittot
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).