Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1618579ybg; Wed, 29 Jul 2020 20:32:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+jSXBgzYiZ04QuI35udLa94bQp+g2lEWlIcFt/0j5tW/K4l72wkLIRANW2mvCcT0qcU5K X-Received: by 2002:a50:fc8d:: with SMTP id f13mr816345edq.380.1596079957622; Wed, 29 Jul 2020 20:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596079957; cv=none; d=google.com; s=arc-20160816; b=Hk/HoLgd1nLIbstIKOHSR9R6wNgW7NqWvWDW+fb2AzbPNH4SYntZxR70eCUQmH6o3d onbCST0SyqtkUZb4GgfPQHDkdgc28qAZ3Nc4tqo7T+Uxc9jkA+WuuPIjL1qh0EzFctCd 7bIuzyz7D+ICuRkUMnKIpmW0MP/0QFkJp6+NJ9PxiE0scFk9rrXZUBccea/qG8hC1m2K rVdaj7aIf8qlPNqWa5QPGSAHweAtEiKAtykHbIkmaBrnxdYam8xEI6dFTH13ZCJBlILT h6crnQMCka8WAu8/aTMedbu5WHhn0BialtroXB2E/ElzmNnRLDT/2CX83/l38frGOquS /fig== 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=7HrGxOPFvSOlEsStRnoLBtIaSgJulHCQUUk5ZJs0Wa4=; b=SedujWHnLYIy5+ZF6X4jojPQTaLNf4+Ylj8PSWqjdydOtHp/I9oP92529Xnn6ewjEq 55Gezk9/MSlL/e3t+pOnICUwpNDedJtsqhOQ48iLXUY1cVvEcg+9e+eOtR/1qIcIIwbg Bd6yXF98SHrUnC8n6+r/uqLGHLrNQogge1e6PG3dX6aTBUq3QDpvThvKdlMJQxVUcmVb 6JpXCrKJJ75i8csX0Cf1ggwC9FrAdw5BWyQgS/WCs3lH6SXf/PClQElBlNVJwPGX48EU wzbkCBwp2Mz4rL+oAOB9KkWNkgoXOy+s+cl1aX2SfK7WhWWMGQdFo6e4neD4wvzQcbcZ ynTw== 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 d4si2619473edv.535.2020.07.29.20.32.15; Wed, 29 Jul 2020 20:32:37 -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 S1728466AbgG3Dan (ORCPT + 99 others); Wed, 29 Jul 2020 23:30:43 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8297 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726367AbgG3Dan (ORCPT ); Wed, 29 Jul 2020 23:30:43 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 73647A6AC142276B3404; 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 2/3] scsi: Remove superfluous memset() Date: Thu, 30 Jul 2020 11:31:57 +0800 Message-ID: <1596079918-41115-3-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/qla2xxx/qla_mbx.c:4928:15-33: WARNING: dma_alloc_coherent use in els_cmd_map 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/qla2xxx/qla_mbx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 7388343..14656da 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c @@ -4933,8 +4933,6 @@ qla25xx_set_els_cmds_supported(scsi_qla_host_t *vha) return QLA_MEMORY_ALLOC_FAILED; } - memset(els_cmd_map, 0, ELS_CMD_MAP_SIZE); - /* List of Purex ELS */ cmd_opcode[0] = ELS_FPIN; cmd_opcode[1] = ELS_RDP; -- 2.7.4