Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1029834imm; Wed, 17 Oct 2018 12:06:57 -0700 (PDT) X-Google-Smtp-Source: ACcGV62JOjC1PeKagsUMVfvaYEq9fL144pBBJlVzfpllVIeYo7CUnzi+Tws1uBpMLVAS+yiQAY8k X-Received: by 2002:a63:ee43:: with SMTP id n3-v6mr24256360pgk.234.1539803217659; Wed, 17 Oct 2018 12:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539803217; cv=none; d=google.com; s=arc-20160816; b=TtKf/+wfofamt1qAzAP/ODjX4zlWV5Ocn+lcRcH+htpfIduffnFKkr8/W0PFDAzgj0 rudO5Ewu3CQAYdgrUqtl99kf/IQAclyLf4xmDqhQ52P9RgdnOE80lUjXW+cilX3e+6aY PEqZBZ3o4BwkavbfBkgDwn32odqkUiKohDObLampqi3mLZHtxew4rwzV8a3zuQQ37FkM na6/XSgwCasERY4Iyw4Ul57Dusz9tGMmjFjDBj2cnO8GE0MPTFoIaP3x/QpzBBsXQeM9 iKyYn6fIvWK04DzfEdxhzyIzyvXf9DuJ580Yf4/2qU6Ao2/fTzWReAaMPy5GZ0hs3JPG jxog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=D18DHmEJW+GQ5xLPc6XayGe2zrSEH1xtYdbkt/HqwjU=; b=qULi4TbA580eXjPZV/8CQuWK3ca/Vb/ULjzp9pfhr7E1vXYR3Z9OEo/y8aEPNY4T7B lXjsC4QZgT/6CyC8eFxxTJ/SNHpEd97gNyeOjZ2wREi++2VCsO2HEtzqsFM9X6ZawHvc 4A69utX5qeUuRley+RGcvpEr4nbY+jsvEUgG6K5bNzHibA3ztM1YwcSGqBGnahRFQovY pH1nsjsmRdjjd02VlFjMf/RahnsTMldXlrV89IuPpipZ4fSx8RRyBLtbKEs308BAXOKz QLMlycTeCZTkfbduIMGCInsZvubqhbKlr69v6FG+JwHrAo09OIsjEzJyCDC+q1sNvPT8 21dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si17594427plr.141.2018.10.17.12.06.41; Wed, 17 Oct 2018 12:06:57 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728291AbeJRC7X (ORCPT + 99 others); Wed, 17 Oct 2018 22:59:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:42470 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728115AbeJRC7W (ORCPT ); Wed, 17 Oct 2018 22:59:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 04D2BB05B; Wed, 17 Oct 2018 19:02:19 +0000 (UTC) From: Nicolas Saenz Julienne To: gregkh@linuxfoundation.org Cc: eric@anholt.net, stefan.wahren@i2se.com, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tiwai@suse.de, nsaenzjulienne@suse.de, devel@driverdev.osuosl.org Subject: [PATCH v2 2/7] staging: bcm2835-audio: don't initialize memory twice Date: Wed, 17 Oct 2018 21:01:51 +0200 Message-Id: <20181017190156.30010-3-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181017190156.30010-1-nsaenzjulienne@suse.de> References: <20181017190156.30010-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The memory is being allocated with devres_alloc(), wich ultimately uses __GFP_ZERO to call kmalloc. We don't need to zero the memory area again in bcm2835-audio. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Takashi Iwai Acked-by: Stefan Wahren --- drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c index 87d56ab1ffa0..0efae7068fef 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c @@ -39,8 +39,6 @@ static int bcm2835_devm_add_vchi_ctx(struct device *dev) if (!vchi_ctx) return -ENOMEM; - memset(vchi_ctx, 0, sizeof(*vchi_ctx)); - ret = bcm2835_new_vchi_ctx(dev, vchi_ctx); if (ret) { devres_free(vchi_ctx); -- 2.19.1