From patchwork Tue Jun 30 18:04:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Klimov X-Patchwork-Id: 6697881 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 30AF09F44B for ; Tue, 30 Jun 2015 18:05:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 590852063F for ; Tue, 30 Jun 2015 18:05:01 +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 91E5E2063C for ; Tue, 30 Jun 2015 18:05:00 +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 1Z9zu0-0000wN-9w; Tue, 30 Jun 2015 18:05:00 +0000 Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z9ztz-0000qk-1B for linux-rockchip@lists.infradead.org; Tue, 30 Jun 2015 18:04:59 +0000 Received: by lagc2 with SMTP id c2so23754073lag.3 for ; Tue, 30 Jun 2015 11:04:36 -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=IcdaPltQrQDoB1o9Bv77rZUQUgZnm5Wf6JuXOiKeWc8=; b=qDLYkCOsSWCzoiwbP8XOpHrDx+2yzPVEPpTbrQBJudAedt6p1MUSH5xEKVH3JX7Kdm ZvJcue1rlIM5ygVXRQSfc8rssaUGLdj8pcQOIe9URK4UCU3D3Uq/46guyLchjjNeGAbv oM/nqs/VTzGT6DRW/nZuVXesnee7nZZtowJTVPE8hB2kA1ISIMyZPh9CiUvcj6lY6wiX D0Gw0lIPra6lP1ZRN385uVAbPqZUKaN0zhvs4fu1E34EWYvEt2SokgOkMvBd4APlts05 t5CKQW+TmsA9HC3lbEJGCEUNellljb2xuGUCHP5hfHmPZwz/5Q5OCAWXLZbjrQnZPeL4 ouGA== X-Received: by 10.152.6.132 with SMTP id b4mr18624351laa.53.1435687476831; Tue, 30 Jun 2015 11:04:36 -0700 (PDT) Received: from [192.168.42.218] ([83.149.9.0]) by mx.google.com with ESMTPSA id w8sm1849694lal.38.2015.06.30.11.04.35 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Tue, 30 Jun 2015 11:04:36 -0700 (PDT) Message-ID: <1435687447.27701.13.camel@ceres> Subject: [PATCH 2/2] spi/rockchip: remove unnecessary memset of rockchip_spi From: Alexey Klimov To: linux-spi@vger.kernel.org, broonie@kernel.org Date: Tue, 30 Jun 2015 21:04:07 +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_110459_266299_7D4877C0 X-CRM114-Status: UNSURE ( 7.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) 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 struct rockchip_spi 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 --- drivers/spi/spi-rockchip.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 68e7efe..79a8bc4 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -645,7 +645,6 @@ static int rockchip_spi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, master); rs = spi_master_get_devdata(master); - memset(rs, 0, sizeof(struct rockchip_spi)); /* Get basic io resource and map it */ mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);