Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1221818 > unrolled thread

[PATCH 2/3] clocksource: sh_cmt: remove unneeded memset() in sh_cmt_setup()

Started byAlexey Klimov <alexey.klimov@linaro.org>
First post2015-09-10 02:40 +0200
Last post2015-09-10 02:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 2/3] clocksource: sh_cmt: remove unneeded memset() in sh_cmt_setup() Alexey Klimov <alexey.klimov@linaro.org> - 2015-09-10 02:40 +0200

#1221818 — [PATCH 2/3] clocksource: sh_cmt: remove unneeded memset() in sh_cmt_setup()

FromAlexey Klimov <alexey.klimov@linaro.org>
Date2015-09-10 02:40 +0200
Subject[PATCH 2/3] clocksource: sh_cmt: remove unneeded memset() in sh_cmt_setup()
Message-ID<q6Y4a-2nB-3@gated-at.bofh.it>
Memory for cmt struct is allocated by kzalloc() in sh_cmt_setup.

Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
---
 drivers/clocksource/sh_cmt.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c
index ba73a6e..103c493 100644
--- a/drivers/clocksource/sh_cmt.c
+++ b/drivers/clocksource/sh_cmt.c
@@ -962,7 +962,6 @@ static int sh_cmt_setup(struct sh_cmt_device *cmt, struct platform_device *pdev)
 	unsigned int i;
 	int ret;
 
-	memset(cmt, 0, sizeof(*cmt));
 	cmt->pdev = pdev;
 	raw_spin_lock_init(&cmt->lock);
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web