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: 6697861 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0CFA8C05AC for ; Tue, 30 Jun 2015 18:04:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4070D204E2 for ; Tue, 30 Jun 2015 18:04:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 186442063F for ; Tue, 30 Jun 2015 18:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751112AbbF3SEj (ORCPT ); Tue, 30 Jun 2015 14:04:39 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:34407 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574AbbF3SEi (ORCPT ); Tue, 30 Jun 2015 14:04:38 -0400 Received: by lagx9 with SMTP id x9so23766352lag.1; 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 Cc: linux-samsung-soc@vger.kernel.org, klimov.linux@gmail.com, addy.ke@rock-chips.com, linux-rockchip@lists.infradead.org Date: Tue, 30 Jun 2015 21:04:07 +0300 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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);