[PATCH v2 06/10] clk: qoriq: Replace kzalloc() with kmalloc()
Emil Medve
Emilian.Medve at Freescale.com
Wed Jan 21 21:03:28 AEDT 2015
Where the memset() is not necessary
Signed-off-by: Emil Medve <Emilian.Medve at Freescale.com>
---
drivers/clk/clk-qoriq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c
index 07936a3..4b44825 100644
--- a/drivers/clk/clk-qoriq.c
+++ b/drivers/clk/clk-qoriq.c
@@ -193,7 +193,7 @@ static void __init core_pll_init(struct device_node *np)
if (!subclks)
goto err_map;
- onecell_data = kzalloc(sizeof(*onecell_data), GFP_KERNEL);
+ onecell_data = kmalloc(sizeof(*onecell_data), GFP_KERNEL);
if (!onecell_data)
goto err_clks;
--
2.2.1
More information about the Linuxppc-dev
mailing list