From patchwork Mon Oct 19 20:59:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 55262 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 5D23E22F11 for ; Mon, 19 Oct 2015 21:01:56 +0000 (UTC) Received: by lbbor1 with SMTP id or1sf31831068lbb.2 for ; Mon, 19 Oct 2015 14:01:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Q4i2C4Iyizw9ZuVQuCGwVkDMOuUpHZ26n7rsLhqoPPI=; b=moxf2pWZv6hc4lDofl8XDv7UmgFvVxnyvah2GRyPHEZgIkD7qaY4x/qmnPgq+ofLLM c+8pxCd4KYZfX0kSZMWvX87BaE6mQSPn74vzzJd8jzD0zNUxHnOtDX8AaJzzEByzHHf9 MJbC4F4/2JPnES493IM5FZUZA9yXd4E84+rgW8IAenMPw3vS26+yz2y09OI1fY0zn96y pzloPgKJT9tkVEpdKukLS1l+kxdBOD/QWN8ArjCVuCA7D/zrrF2wHKEOXa4LkZu9WhXq fFxN/YzfgxwYBb7TljC4DNZowelJFVmru4WnlQwS3ppYaMHALh45Bh+pdBilCWC6ioGm xoEA== X-Gm-Message-State: ALoCoQkqnNLNNzaP7snNHojW+aw6EjreZzlleE815sas3T46y3ju3/NHGUDrcXEhT6n3NKDkT2hs X-Received: by 10.112.209.73 with SMTP id mk9mr6984860lbc.14.1445288515275; Mon, 19 Oct 2015 14:01:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.33.196 with SMTP id h187ls647254lfh.4.gmail; Mon, 19 Oct 2015 14:01:55 -0700 (PDT) X-Received: by 10.25.151.205 with SMTP id z196mr10188957lfd.97.1445288515108; Mon, 19 Oct 2015 14:01:55 -0700 (PDT) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id d127si24301474lfg.83.2015.10.19.14.01.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 14:01:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by lbcao8 with SMTP id ao8so156411749lbc.3 for ; Mon, 19 Oct 2015 14:01:55 -0700 (PDT) X-Received: by 10.112.135.9 with SMTP id po9mr16220727lbb.56.1445288514977; Mon, 19 Oct 2015 14:01:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1697585lbq; Mon, 19 Oct 2015 14:01:54 -0700 (PDT) X-Received: by 10.68.111.36 with SMTP id if4mr913965pbb.66.1445288513900; Mon, 19 Oct 2015 14:01:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ee7si55290764pac.105.2015.10.19.14.01.52; Mon, 19 Oct 2015 14:01:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754530AbbJSVBv (ORCPT + 28 others); Mon, 19 Oct 2015 17:01:51 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:37784 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750814AbbJSVAB (ORCPT ); Mon, 19 Oct 2015 17:00:01 -0400 Received: by wicfv8 with SMTP id fv8so368136wic.0 for ; Mon, 19 Oct 2015 14:00:00 -0700 (PDT) X-Received: by 10.180.188.101 with SMTP id fz5mr63914wic.3.1445288400303; Mon, 19 Oct 2015 14:00:00 -0700 (PDT) Received: from mai.telefonica.net (185.Red-213-96-199.staticIP.rima-tde.net. [213.96.199.185]) by smtp.gmail.com with ESMTPSA id xt1sm42296501wjb.32.2015.10.19.13.59.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Oct 2015 13:59:59 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, Alexey Klimov , Yoshinori Sato , uclinux-h8-devel@lists.sourceforge.jp (moderated list:H8/300 ARCHITECTURE) Subject: [PATCH 5/9] clocksource/drivers/h8300_*: Remove unneeded memset()s Date: Mon, 19 Oct 2015 22:59:24 +0200 Message-Id: <1445288368-6440-5-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1445288368-6440-1-git-send-email-daniel.lezcano@linaro.org> References: <56255943.6060807@linaro.org> <1445288368-6440-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Alexey Klimov Memory for timer16_priv, timer8_priv and tpu_priv structs is allocated by devm_kzalloc() in corresponding probe functions of drivers. No need to zero it one more time. Signed-off-by: Alexey Klimov Signed-off-by: Daniel Lezcano Acked-by: Yoshinori Sato --- drivers/clocksource/h8300_timer16.c | 1 - drivers/clocksource/h8300_timer8.c | 1 - drivers/clocksource/h8300_tpu.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/clocksource/h8300_timer16.c b/drivers/clocksource/h8300_timer16.c index 82941c1..0e076c6 100644 --- a/drivers/clocksource/h8300_timer16.c +++ b/drivers/clocksource/h8300_timer16.c @@ -153,7 +153,6 @@ static int timer16_setup(struct timer16_priv *p, struct platform_device *pdev) int ret, irq; unsigned int ch; - memset(p, 0, sizeof(*p)); p->pdev = pdev; res[REG_CH] = platform_get_resource(p->pdev, diff --git a/drivers/clocksource/h8300_timer8.c b/drivers/clocksource/h8300_timer8.c index f9b3b70..44375d8 100644 --- a/drivers/clocksource/h8300_timer8.c +++ b/drivers/clocksource/h8300_timer8.c @@ -215,7 +215,6 @@ static int timer8_setup(struct timer8_priv *p, int irq; int ret; - memset(p, 0, sizeof(*p)); p->pdev = pdev; res = platform_get_resource(p->pdev, IORESOURCE_MEM, 0); diff --git a/drivers/clocksource/h8300_tpu.c b/drivers/clocksource/h8300_tpu.c index 64195fd..5487410 100644 --- a/drivers/clocksource/h8300_tpu.c +++ b/drivers/clocksource/h8300_tpu.c @@ -123,7 +123,6 @@ static int __init tpu_setup(struct tpu_priv *p, struct platform_device *pdev) { struct resource *res[2]; - memset(p, 0, sizeof(*p)); p->pdev = pdev; res[CH_L] = platform_get_resource(p->pdev, IORESOURCE_MEM, CH_L);