Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11100402ybi; Thu, 25 Jul 2019 10:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkyWhvaSiiuRPF+1ABPwOgD0dS7/v7ujUqRWe4RPfpaR7jyv10Zlo/nQYRHLBVLK7mkCw8 X-Received: by 2002:a65:6108:: with SMTP id z8mr55797351pgu.289.1564074042443; Thu, 25 Jul 2019 10:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564074042; cv=none; d=google.com; s=arc-20160816; b=XmzftFkeJyqSU5gObB1o543bxkfLq+hGUjk+q4GMbKZPedG2OPNaVdWq6PNK4+7ZdV dCMvz40Ve9ezjS5uvfdYKaWjTmijPgJulw+waURMlqCOGPby0QU/6J1zAEhLwbWg2ymz za+FBt+/8y3y9uSeJDTQkmP+ki89+G2llSidjlWGVY2lul794PjbnDDCIFxc1VAy+F4G uvweCO/poab4w84MKKeTdnSRKBDdH3JC6tB8OlCnp4ijcMKWZ8irTkN69LSAsvRlqmb8 b5/jg/NmnsSwTZGx0+/xOoY+vds4bdP9et1NRFEltc8HDIodj+xrdY0kWOqwtu7lPcrC uZpw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=te/y2FrZn+KpQcQUKjbA1lL8fNFQMCDcaZtSv6s7Cc8=; b=cBSYWCvtFEXcHZaMDDiSCEfbIwc5Ey93JLku4BEku+oP2wCEpL+jezgyUMC96cYLs7 +khB8lrgZ+KoZi9cVteWEGdXt00Mfqb+tu5M16pbGobtK5oC1BF/pGNys9SNdEbj6prF /ARy2tMxj2tm22nad4Coj9Bqj9cV1AN25T0+dlYMGNOSDH5THVjKuP4ldSMTtO1WCKG/ uGslDFQllAs+M9umogpXa97GCliLTP/VZHNZTQ4OnaTKe97OIWpy3XeYsoXbDOpDwFyN 3WeFsroUWKpYCR+OhE/VFHHCg10CfuFk609/HC6EL2kMuF0ujTvEQ63uL2ZjCKokrsIx a4Uw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si16647848pln.228.2019.07.25.10.00.27; Thu, 25 Jul 2019 10:00:42 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404398AbfGYLuL (ORCPT + 99 others); Thu, 25 Jul 2019 07:50:11 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:43342 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404313AbfGYLuL (ORCPT ); Thu, 25 Jul 2019 07:50:11 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id AB0A128A773; Thu, 25 Jul 2019 12:50:09 +0100 (BST) Date: Thu, 25 Jul 2019 13:50:07 +0200 From: Boris Brezillon To: Hariprasad Kelam Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , Ezequiel Garcia , Tomasz Figa , ZhiChao Yu , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: media: hantro: Remove call to memset after dma_alloc_coherent Message-ID: <20190725135007.33dc2cd3@collabora.com> In-Reply-To: <20190725030602.GA13200@hari-Inspiron-1545> References: <20190725030602.GA13200@hari-Inspiron-1545> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Jul 2019 08:36:02 +0530 Hariprasad Kelam wrote: > fix below issue reported by coccicheck > /drivers/staging/media/hantro/hantro_vp8.c:149:16-34: WARNING: > dma_alloc_coherent use in aux_buf -> cpu already zeroes out memory, so > memset is not needed > > Signed-off-by: Hariprasad Kelam Reviewed-by: Boris Brezillon > --- > drivers/staging/media/hantro/hantro_vp8.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/staging/media/hantro/hantro_vp8.c b/drivers/staging/media/hantro/hantro_vp8.c > index 66c4533..363ddda 100644 > --- a/drivers/staging/media/hantro/hantro_vp8.c > +++ b/drivers/staging/media/hantro/hantro_vp8.c > @@ -151,8 +151,6 @@ int hantro_vp8_dec_init(struct hantro_ctx *ctx) > if (!aux_buf->cpu) > return -ENOMEM; > > - memset(aux_buf->cpu, 0, aux_buf->size); > - > /* > * Allocate probability table buffer, > * total 1208 bytes, 4K page is far enough.