From patchwork Wed May 9 17:07:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 135320 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp5313lji; Wed, 9 May 2018 10:12:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpszwMPln1Mqf9tRKALHY+LFl1Jk50hmUPEGGL++QfI5Uf9Ad5jfC7PAH8SIrF56qES/sGu X-Received: by 2002:a17:902:bc4a:: with SMTP id t10-v6mr46341152plz.343.1525885972493; Wed, 09 May 2018 10:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525885972; cv=none; d=google.com; s=arc-20160816; b=YGnhkbwcjjf2Mzo2nwMrQ76JxJrrMog0Jn9Jcvxl6hWmjnnS4Zk7c8QuwgixRNbzZC pP79r24Nn2sAafTg9160Ubd3f1bZKm81vuvrluqJtAONjYhtTv6/ACuJnJ6eZrOKc7dA EpEw0lPziqgEnAWCR9DwOzkG+ig6jTY8H0YDdFQ7LBtVXvunaW9cVZ7IB4LIVeAkgj4x vyoayDvz8BSSuB2hOhqW02vFKNvJl9hljl/ViaYT22BF7fDcmQ+ZyaRdsaZ36jenDG+w +DWVFnlnIEKVmfpk3wp9AXV9548sg5hdlUdhLav5CLreT1/RlNIj4OussPSrvR1fGTjT VW2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=vtbHm+gTyWZ/MaBqLpSIPqxY+ZL+z3fd9U2PXx8ehzM=; b=sjQN4gU9ZJfumzP+djQvvsIf/JxVNEXRfKI5RZuOGuOBbt72KtpAK/zlpPaAoiw5cZ I7CoaB5O/r6LYG/YNkg+929RB4nm0G0BoTtGhGpp++TtszQPp3CspPRIwmz53iQa3qYs bcybRTdceh9AzvDbrwolroT50o3EmPb59UbKwoqWq1plCDxa4NBONyRiJN9BBtooHzPt srFO6VaXo9kigB8yL9d5Xpl0s4/Uzdz1+OtKHp1dpVn0jZRs+RQIU3yNvG38WtNpTHEO NDm1Nl/7l4zz7/DHeBMYieIi3k0mnrpIu/OGC1+Ex9PJkdYaB9qwQcQH1trWCnPrZpxO ojSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 j33-v6si16858745pld.151.2018.05.09.10.12.52; Wed, 09 May 2018 10:12:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965701AbeEIRMv (ORCPT + 10 others); Wed, 9 May 2018 13:12:51 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47312 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965594AbeEIRMv (ORCPT ); Wed, 9 May 2018 13:12:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0F0221684; Wed, 9 May 2018 10:12:51 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (unknown [10.1.210.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1C57B3F592; Wed, 9 May 2018 10:12:49 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, Jonathan Cameron Cc: Sudeep Holla , linux-pm@vger.kernel.org Subject: [PATCH 6/8] firmware: arm_scmi: remove unnecessary bitmap_zero Date: Wed, 9 May 2018 18:07:12 +0100 Message-Id: <1525885634-22348-7-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525885634-22348-1-git-send-email-sudeep.holla@arm.com> References: <1525885634-22348-1-git-send-email-sudeep.holla@arm.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org kcalloc zeros the memory and it's totally unnecessary to zero the bitmap again using bitmap_zero. This patch just drops the unnecessary use of the bitmap_zero in the context. Signed-off-by: Sudeep Holla --- drivers/firmware/arm_scmi/driver.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 Acked-by: Jonathan Cameron diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c index 33d2b78af3ff..4087d6c50ecd 100644 --- a/drivers/firmware/arm_scmi/driver.c +++ b/drivers/firmware/arm_scmi/driver.c @@ -636,8 +636,6 @@ static int scmi_xfer_info_init(struct scmi_info *sinfo) if (!info->xfer_alloc_table) return -ENOMEM; - bitmap_zero(info->xfer_alloc_table, desc->max_msg); - /* Pre-initialize the buffer pointer to pre-allocated buffers */ for (i = 0, xfer = info->xfer_block; i < desc->max_msg; i++, xfer++) { xfer->rx.buf = devm_kcalloc(dev, sizeof(u8), desc->max_msg_size,