Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1221818
| From | Alexey Klimov <alexey.klimov@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] clocksource: sh_cmt: remove unneeded memset() in sh_cmt_setup() |
| Date | 2015-09-10 02:40 +0200 |
| Message-ID | <q6Y4a-2nB-3@gated-at.bofh.it> (permalink) |
| References | <q6Y4a-2nB-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[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
csiph-web