Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5292683imm; Tue, 16 Oct 2018 08:06:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV61h7GAvk3F8rJp4+zwOJpvnn4aFS0VqvWmplj108UyrkKZlTgR9yoXjO4Oi7OomyMmmvrlB X-Received: by 2002:a63:5726:: with SMTP id l38-v6mr20659064pgb.118.1539702413359; Tue, 16 Oct 2018 08:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539702413; cv=none; d=google.com; s=arc-20160816; b=vRrUdxY3cY2vHxpA5DmuFP6bDXivxcacPYa6rLHHLb2BnHaokPo4yzBhNP3sVovbz0 /XQZZcHcnehELyxUXoW2z7p+Sfs6aJTlUKr/FiaI+9bixaDSuCGwd7wLFtP05k/PSHZC tI3GByMh1yffGNkVZ44/jKS6HAsOgxnwUpu6vPp6zmOXJGQgHt2sP5vtIGdvEboq4m0n ZopL6jGbqrdJn++mf45lEft1tbPWMYCZEJ6SUu3NjE+57FeWMJmMz8cgJyUHimdzW9L6 5pmz1wgTAip1QBAEQD+FjNqjMJwL3X9FL4O3C9Vq4aNed/xN/wP0EnIqSi1B1u1qfv5W canQ== 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=wejoZ3Bap5TABSoLj0WeCbmWCU4U1o60VM71ACMLcHw=; b=A2ExKzP9EuNwsqR05GfZLKvufGMuF5VTeVOtNhBEKlZK33ZJX/M/2a4rZHp++EpV81 x9IZzoZjL/OdCzn9eSew6Iwb91wtohABBEFfSMCTJXyryU9QsCVKSIQkrBMKHqGCQlNs UNvZqYRSHtPlexYb6JCRcArfwqWR1wqyIdyb0zG53O2UDmWsvND6nm3ZHY16boW9GB1g cDkbP0zaThAhEMkwmXhnZ1fWgVC7cHwml+rT00l5FLcMdfCbu38NgpLGUB6q2zM6reRf 00k9qGdvLPwy+80qn4mezeLB2A9RK9jw7Flr5ujIKyQYvl0tUg4SM6c7dknMjHVGxhIf 3Ikg== 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 127-v6si14091910pgj.25.2018.10.16.08.06.34; Tue, 16 Oct 2018 08:06:53 -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 S1727218AbeJPWyt (ORCPT + 99 others); Tue, 16 Oct 2018 18:54:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:55654 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727059AbeJPWyt (ORCPT ); Tue, 16 Oct 2018 18:54:49 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 52AC7AF80; Tue, 16 Oct 2018 15:03:56 +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, devicetree@vger.kernel.org, robh+dt@kernel.org, tiwai@suse.de, nsaenzjulienne@suse.de Subject: [PATCH 2/9] staging: bcm2835-audio: don't initialize memory twice Date: Tue, 16 Oct 2018 17:02:21 +0200 Message-Id: <20181016150228.16994-3-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016150228.16994-1-nsaenzjulienne@suse.de> References: <20181016150228.16994-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 --- 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