Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10418692ybi; Wed, 24 Jul 2019 22:52:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtOpLsOpxm7R8aoyUr0JneMdzqaLtf9eyJxJ2coHGEjYNS0HWxf36vm0/FgHD0sd/cBcsY X-Received: by 2002:a63:ec48:: with SMTP id r8mr9407629pgj.387.1564033975144; Wed, 24 Jul 2019 22:52:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033975; cv=none; d=google.com; s=arc-20160816; b=UIn9Dw9mZE1afjLuKztgcLc4uRtx/Nm3Mpm1S5Nf2HLN+9DiKpooBRtiWZMR/6h+ds sghpIrdJJ2nj+ruLJ/Afsuk9kzQaE/XJiSmPfn9Yv3io6L11/+y/MXtzIGQuYkS21EMA H1ku+XPgj/nQh+7syjO4aPGmpuBV/Wq5s2vvXqX9p71z8JMBN4kbPmhFvGic+EdnpepI puLGGBq6TJm8MjCxXNJHbh90IM0B3AhaXmkAKMayuiwaU7K5KvSKAkLJH8wRcXCgR1VS BxKQLiyC/SDVMjLPdiYtH87hzheS0BYUvsZCzO4XYha0GsINKsi7lVnuCeUIwLM41uaf MdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=btqtc51LYIlkEFKYEvoFlR3PBGUCHhIjiaOtnkKqJro=; b=IUu7dGcZh6LnKs7/TOh6n0p88QdiW8LYRksysOPAc6rkXToa7Zkb6vsyb0h2Rf94iT GqkXL+fhXp/lyg71+2HpzUGvCBCtgSjOHx5TyzgTFVj7speuBydWUpYlMBaAqjg1CPtM 89b7R+kQE4zlA/6eJr1Z6XJN4HltlGEnERUUpcdOLPLH4qqZElf2Pq3jMfGbvfv6psmC 5gQ10rzawDxfDojx7Jd+hP/pM23QRzMpcRXrPxfeiu6ANK9v2dTv0U7lQSyjYvC99YYJ DfbQh39XHt91DwZrjQ98cnM+RT22dGhBpdedKpyGZbYyReFwgmPCYGlaSyWyE2RzSVPY u40w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fD8huxV2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si14021624plt.276.2019.07.24.22.52.40; Wed, 24 Jul 2019 22:52:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fD8huxV2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389605AbfGYDGL (ORCPT + 99 others); Wed, 24 Jul 2019 23:06:11 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36876 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389486AbfGYDGL (ORCPT ); Wed, 24 Jul 2019 23:06:11 -0400 Received: by mail-pg1-f195.google.com with SMTP id i70so11479077pgd.4; Wed, 24 Jul 2019 20:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=btqtc51LYIlkEFKYEvoFlR3PBGUCHhIjiaOtnkKqJro=; b=fD8huxV26PAdMafS1EwLFq5jiz1vj4SJcZHD46LnjytMwiRzml9XuyBDaZ49XcFhwN A9bMZEiO63TMJea3axNvha4nijQm0gOfKGigdk74DTutDN5vyPeW5LwT53XUV2TsQlWr 2rST9N/J4C1S2NMp+d4nwSyPBzWCYn0tBZnl5i33ofplfnZQJPLH8j/CVBnPLNJ3PQNZ eFBtvYT2RRkH35UalHH0QoSQfLrKKYebSIq5FXClst55JtGLH5YjOiaKqmVoRIG9/OZ+ VH++AzgLiL6euLBB0lAXUckGqRQLHN5CCdN5JFcBiYt61XdsOdDZm0XrnwVawbu8heYT PueQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=btqtc51LYIlkEFKYEvoFlR3PBGUCHhIjiaOtnkKqJro=; b=TPOgGFTWFqY3LWZJH5U1m4j2EWQh+Ku3dh6Horn7O/9Q9P3/qLgnRm6WHLEPSaVEZq f8SVQBO3YxG2/OPHfM+UV28AKr07+6yoRYkEwdJIu1bc6qyjvM1JfkRp6nuhQrsrD7qK ZQFsib1JDEd6yYzerShh+o8wLRKIh2WVLl3Utyawfo1Wuj9XK/bu12dolWtrosriH9N1 9CeiAaptvLzc+1WC3W8L1luqLk1oRwSQ9U3+3ALZQYp6FgwCE1+KlRC6B9Pdb+MsqaZh KqBFHZ3Eu3EIVgfd2VpBVU7CvCMtQLQREHZLF+tBAEtohfz8mCpbrSpiASTN9fUDtGHd 4fSw== X-Gm-Message-State: APjAAAVLLBt8I3jkiuY0J2pcUNSHlQL2AHJ34UuvbsOzf+lUuufttLha H8kq1z5IkVJs6IXndNppxhk= X-Received: by 2002:a17:90a:a489:: with SMTP id z9mr87238271pjp.24.1564023970838; Wed, 24 Jul 2019 20:06:10 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id o14sm47624388pjp.29.2019.07.24.20.06.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Jul 2019 20:06:09 -0700 (PDT) Date: Thu, 25 Jul 2019 08:36:02 +0530 From: Hariprasad Kelam To: Mauro Carvalho Chehab , Greg Kroah-Hartman , Ezequiel Garcia , Tomasz Figa , Boris Brezillon , ZhiChao Yu , Hariprasad Kelam , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: media: hantro: Remove call to memset after dma_alloc_coherent Message-ID: <20190725030602.GA13200@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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. -- 2.7.4