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: 6697841 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 2B681C05AC for ; Tue, 30 Jun 2015 18:04:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E80E204E2 for ; Tue, 30 Jun 2015 18:04:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 48CC120640 for ; Tue, 30 Jun 2015 18:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbbF3SEb (ORCPT ); Tue, 30 Jun 2015 14:04:31 -0400 Received: from mail-la0-f54.google.com ([209.85.215.54]:33243 "EHLO mail-la0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751767AbbF3SEa (ORCPT ); Tue, 30 Jun 2015 14:04:30 -0400 Received: by laar3 with SMTP id r3so23870021laa.0; 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 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:03:58 +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=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);