Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1617922ybg; Wed, 29 Jul 2020 20:31:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/UBre2fZULLcVpQwmw6Bxcyk2hHzGAJA5VWePDhLIHi6Y7xqKUChZjzi9LmsefQyapJnE X-Received: by 2002:a17:906:e46:: with SMTP id q6mr668630eji.234.1596079881720; Wed, 29 Jul 2020 20:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596079881; cv=none; d=google.com; s=arc-20160816; b=iSAQvaUrJq+SQFe7kaLbdUG4lJJosfY7pXudobe9P4Juy8bf3La5YkvQ6ArwthIdNx h/2b3Omd5QzuvRizU2MjELzjh5SU98toxWd+xGIW5wVWW29RC9C/zMEYlyztGNZRHnCI yqz0CBlUUB4eYs+95GvN0hHJRpRUrkXfxg45tYOQKFi4cq/LPZXL+zwhZyWeFHF9D97v gh4Dki/nn5F1/7MGFAP/jJDfZXiAgtD8Tl8qrYuj3WqrZ8Wqo2n6dbUSiVC8uL6y+Eld L4oKaxvS/LOyfw9yoQfc5Bc/eqWlcEOwyhXY/VdU8iN4Be4UU9BnbMjpMvJGzB+yrZez 1chA== 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=4DuUq77A20QbURMJUc6MmmIMQXcF3KVk1krsknCrIU8=; b=i+13U3cHucejUzz8WDrsf8SVxt0Wafj3mI6zLwEUsAJxxOVxwb6iADFcodMcO37d36 zulAJYdwB3C6KJZMmiQ0WsdGo3fRnpRqF5ekz0ul2La81UTVLEbabiMs8hP5l4Z3EaAv 9Zbz7aphbAu8lqzk44XEP10sBVOsuPbdHlcjMJqQq5ma/kiUd9V4HkeSZ6ZlHvgjX8IH Xqq+BMIxZd5HUNUgz9R42fF6cKrrrSjT9SQi1UA0L17CtDTatdi74cxtQWoC7Elxxf9N Ef5CelmWWZN/QcgLUaFR/jj4+d25EvWV2as5J5phCpEMgKee1NbxLhm8qlPNOY0Nf2TL poCw== 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 u25si2377111edq.436.2020.07.29.20.30.59; Wed, 29 Jul 2020 20:31:21 -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 S1728538AbgG3Das (ORCPT + 99 others); Wed, 29 Jul 2020 23:30:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:8856 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728518AbgG3Daq (ORCPT ); Wed, 29 Jul 2020 23:30:46 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id BAE0D8972AE3E401777C; 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:37 +0800 From: Li Heng To: , CC: , , Subject: [PATCH -next 3/3] scsi: Remove superfluous memset() Date: Thu, 30 Jul 2020 11:31:58 +0800 Message-ID: <1596079918-41115-4-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/mpt3sas/mpt3sas_base.c:5247:16-34: WARNING: dma_alloc_coherent use in ioc -> request 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/mpt3sas/mpt3sas_base.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 1d64524..61219ad 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -5257,7 +5257,6 @@ _base_allocate_memory_pools(struct MPT3SAS_ADAPTER *ioc) _base_release_memory_pools(ioc); goto retry_allocation; } - memset(ioc->request, 0, sz); if (retry_sz) ioc_err(ioc, "request pool: dma_alloc_coherent succeed: hba_depth(%d), chains_per_io(%d), frame_sz(%d), total(%d kb)\n", -- 2.7.4