Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1617913ybg; Wed, 29 Jul 2020 20:31:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvRuPNuT4lguo2VUhFkfcVCayjqG6Z8ER5bHQ4M1jVBo2wXhl3siyilT3SKpCTwBg4863b X-Received: by 2002:aa7:dcd2:: with SMTP id w18mr799113edu.307.1596079880074; Wed, 29 Jul 2020 20:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596079880; cv=none; d=google.com; s=arc-20160816; b=uwf4OhcCs5zOL83+nLjJkeOVAWUYpN2DfEhvRHr5nTQ31x9eWVFBvPn6AvQ8ZE5/Ef AIj8RVlfjyZAdq2WZGqJ00EJnoECUvNUStCrr6tpHM5tpocMcmXKney6BPbUy3X/Ukwo 3nR4GgZyt10KAEyb9yt1C4GOlgStKm0n/f54zW1B5OEpWUnCZRycbdvIsinV69EWa6ln iYmyo/nKzjHBfGT82AK53Tzsa4lAdK3Y884YQPSa9k9TXB1bPh1H2/hNPCCDp4Y51TLq 93tnSjQOfVHDqTtC3gfgPRqYnV+OcuykohV8o8PRXUbObrgvXmhx2Y0PwPzeeDq/QZxG 3OfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=b/CB/zZFILevPHMfZtWxg9NGOakZf3+CUQpsiXiHuBY=; b=Vs4tGoJpN6p706VIt3MV/Ot9+ZolCKrgzyRcps+qChakNfpjQx12JIPxyhyjeOz3ed 6vrORPZE9vYRwcvsKVyYOW2HOFh2DJcEsPlQoTFmPJuvKtZWf00L6i1zJu6SsvZWLzbW mYW4J2qZiNIlbZjN/Pc85aQUZMH7cbH/GI9iCR8u9tp/jqSqiiDHaUC2mO12TtkdfzpN 1basrEddAh1k+HjaKcsySXS/KOF76RbrbGp/laVDkLS3mRT5Hok40UVQG6lS/JsGuxV5 sOsZaEwJUMyzJaD4VMhqxA3pPJh1eKM2r3di/YCyx3fKcNuF3Oczg/l77ZlR1l1G54yj pCbw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ot7si2235472ejb.747.2020.07.29.20.30.58; Wed, 29 Jul 2020 20:31:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728529AbgG3Dar (ORCPT + 99 others); Wed, 29 Jul 2020 23:30:47 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8855 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726724AbgG3Dap (ORCPT ); Wed, 29 Jul 2020 23:30:45 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8974496024F45B93BD9C; Thu, 30 Jul 2020 11:30:41 +0800 (CST) Received: from huawei.com (10.175.104.57) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Thu, 30 Jul 2020 11:30:36 +0800 From: Li Heng To: , CC: , , Subject: [PATCH -next 1/3] scsi: Remove superfluous memset() Date: Thu, 30 Jul 2020 11:31:56 +0800 Message-ID: <1596079918-41115-2-git-send-email-liheng40@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1596079918-41115-1-git-send-email-liheng40@huawei.com> References: <1596079918-41115-1-git-send-email-liheng40@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.57] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: ./drivers/scsi/pmcraid.c:4709:3-21: WARNING: dma_alloc_coherent use in pinstance -> hrrq_start [ i ] already zeroes out memory, so memset is not needed dma_alloc_coherent use in status already zeroes out memory, so memset is not needed Signed-off-by: Li Heng --- drivers/scsi/pmcraid.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index aa9ae2a..d99568f 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -4716,7 +4716,6 @@ static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) return -ENOMEM; } - memset(pinstance->hrrq_start[i], 0, buffer_size); pinstance->hrrq_curr[i] = pinstance->hrrq_start[i]; pinstance->hrrq_end[i] = pinstance->hrrq_start[i] + PMCRAID_MAX_CMD - 1; -- 2.7.4