From patchwork Tue Jun 30 18:03:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 6697871 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7E75D9F39B for ; Tue, 30 Jun 2015 18:05:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F8D62062A for ; Tue, 30 Jun 2015 18:04:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3ABFC204FB for ; Tue, 30 Jun 2015 18:04:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9zts-0000uM-T1; Tue, 30 Jun 2015 18:04:52 +0000 Received: from mail-la0-x230.google.com ([2a00:1450:4010:c03::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9ztr-0000ob-1Z for linux-rockchip@lists.infradead.org; Tue, 30 Jun 2015 18:04:51 +0000 Received: by lagh6 with SMTP id h6so23738255lag.2 for ; Tue, 30 Jun 2015 11:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:mime-version :content-transfer-encoding; bh=DV0RkicXrZxsMqSRkoeXv1YetnXLhAYvCdMXLl/fyqc=; b=aPnBgu5NN0PmUiJElqaY5SnJS++JksJjW0FYIYSpmputD9m04+ZZgDVWdDmj/S2fzb zzsmmIUxiwfYtXNMNJrGThkENzMGIki5wo+/0ZyFPepfF36dvfCWJwQR8tI3iDQOgFOg b03fIcY3IvQfRtoTpGED5YQLhdVnYUiUuvoH0ftD5xAq1LeRaBp1T8XYO3EVHnAe1a2t ke8rkQP2zJyd2wmKsijRDCOUybNoQQm6rMLXWUACkiNAf4T2lKyRbacM+BlbL4EdMLqq WRLzErYRZJrwGp3vTQnWS0X1sfiPdf+R9CLj0+PbLTeRT+UzZRarzCGX6onXvPTAft6F 294A== X-Received: by 10.152.1.4 with SMTP id 4mr21057022lai.25.1435687468587; Tue, 30 Jun 2015 11:04:28 -0700 (PDT) Received: from [192.168.42.218] ([83.149.9.0]) by mx.google.com with ESMTPSA id kv1sm11876620lbb.48.2015.06.30.11.04.26 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 11:04:27 -0700 (PDT) Message-ID: <1435687438.27701.12.camel@ceres> Subject: [PATCH 1/2] spi/s3c24xx: remove unnecessary memset of s3c24xx_spi From: Alexey Klimov To: linux-spi@vger.kernel.org, broonie@kernel.org Date: Tue, 30 Jun 2015 21:03:58 +0300 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150630_110451_296925_1DC5D7CC X-CRM114-Status: UNSURE ( 7.80 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: klimov.linux@gmail.com, addy.ke@rock-chips.com, linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Memory for this struct is allocated by spi_alloc_master() using kzalloc() so it doesn't need to be set to 0 one more time. Signed-off-by: Alexey Klimov Reviewed-by: Daniel Kurtz --- drivers/spi/spi-s3c24xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index f747ca2..f36bc32 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c @@ -501,7 +501,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev) } hw = spi_master_get_devdata(master); - memset(hw, 0, sizeof(struct s3c24xx_spi)); hw->master = master; hw->pdata = pdata = dev_get_platdata(&pdev->dev);