From patchwork Fri Mar 18 14:52:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiabing Wan X-Patchwork-Id: 12785375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E4DAC433EF for ; Fri, 18 Mar 2022 14:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237598AbiCROyt (ORCPT ); Fri, 18 Mar 2022 10:54:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237231AbiCROyo (ORCPT ); Fri, 18 Mar 2022 10:54:44 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2118.outbound.protection.outlook.com [40.107.255.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 417ABF8472; Fri, 18 Mar 2022 07:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PSx2cPKGL5cPwM++SHMOB+xp7f/xmEzwMQZtat9ew9xU8wVOfcdos15y8w5H9q2JmApNOLirtfck22wrrLK2Gd6PccfUzsUWJGUhgJIbSqp8nkFheAWUHz4Bb7FBvNthCh3SeAlWaNDIHA5Tp9n3sUoJu0nejpdtu5IkwDDgJMyu01t4gBJbKDMcZ3kvd33DtuGzjJbSL8DBCXme4XxPb3TgYvShIugU4BT+AktZKIgwZOW+vBTUDAr/6jmHA0det/5ww4dtdgU+poYXLTju+kXIoallp6XS81dCbMHucG4vn3jsaWW0wfAJMg/mA1KKzAJGgk+4C6aE3LZTwejZ5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kIEyoua8qyU/lxq2P0udYtP2K8pGJqUyWzlOAmWWvkY=; b=JtSWIgArqp2zv9rujeiRfJYOlQ9spgj6Zbdz6E2O17cjXnqbruShmRCkb0Iyz2l0OzH36+OXagjIRCN//u5XqfFMrpZ0jcqqmfIs+V7yLdtZPLfyP2pIf63fz61gAMFa5u1OPqdlDJl57p7CUYtAYVLLNbR4yS6QrR3rQSF6SSdRzHGrHJyhSMUb2svHBt1JBfWvNS0cHY005AMgfJxRH0VwN7ixn0QuDX1mnuQ4G5Kist5UlBX5fgbFuUccLc0Mqt3EUrqN3RvWseXNoZIa8UiIF0mPRnFzOZJvFumvTKnf51sptJB4OMbQe0Nk7gOhGc+e1zLzvKjtsKzdiceNOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kIEyoua8qyU/lxq2P0udYtP2K8pGJqUyWzlOAmWWvkY=; b=oZthGSdSdO8edagatrH0vb4PrTgqbv4wa+XPAZ51BGxH0eAp0pftYezylvXqmShQGSx0FiTUhW/B39z54fBS82GiUB2u/gHrZehSiImGwihQI+VyJUsk4UumgNPZL1+pQSezJhJbv6qxoG6NqYNyNGufg5dtIozE7PBbOxStxaM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) by SI2PR06MB4473.apcprd06.prod.outlook.com (2603:1096:4:156::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.15; Fri, 18 Mar 2022 14:53:20 +0000 Received: from SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::9d3f:ff3b:1948:d732]) by SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::9d3f:ff3b:1948:d732%4]) with mapi id 15.20.5081.017; Fri, 18 Mar 2022 14:53:20 +0000 From: Wan Jiabing To: James Smart , Ram Vegesna , "James E.J. Bottomley" , "Martin K. Petersen" , Wan Jiabing , Daniel Wagner , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: elx: efct: remove unnecessary memset in efct_io Date: Fri, 18 Mar 2022 22:52:20 +0800 Message-Id: <20220318145230.1031-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: HK2PR02CA0154.apcprd02.prod.outlook.com (2603:1096:201:1f::14) To SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5adab59b-bb97-4a1a-5b18-08da08ef0a14 X-MS-TrafficTypeDiagnostic: SI2PR06MB4473:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LlNUv7bzlFD81ar83x8ETsqVqJXzR0qJGfjKs7cnY32E42e1pGyszaPo1EYw0GSwiWzCbZzPPzZ4JFivYQwz1xpAPTOY2y6fnWtxhKpyG60ijK4rRmGy5SClyNRBCMD+En2e47bCijYRF1+0JfhDW+NbQnTChEcJwLmohDWDaGbCLCiiASVS+YGzguhLM3IHfVcCjxvyfXvapjDteuAc0wy1olEyq+W0XElwlqFfUhokA8SY4bWvInQMXcLXQRyOhbTSPGzQPBVN2dT6vXNLCtSG6UXd/fxVz+d6IadbpafG+LKcLncrVR8x6t9R4wFI+iYQjkpoDsH+nqPmtjWfNJaWBODY1doesRQlRrMH8EN8h1kixMMiLRzBdIUoZnQe4GE/daG7qNqskjmrfOpykLzWV0bJo7yv1TZlCvPpQbIl9sXSIOnKi1OY/0gSHkVf7iP01O8TLWslLhu3wNGQ1Jszo34cnMuRguR62FV/weRmECIDzhUQ/IGEknZWLi2UienKqbGtj5Mzh6XstfSb+TZhow7VYvVrpQ1sjhCXa8oV1YuCEAJuLpW5HsIzD1W0gSEkCp5PnLyTLXPMa0ibKHBmQimMrC9ROI+2a7XrIiWDazhHK3y32mJHJ724ontN+Ovt1mM6lUCsKQsvylEXyMNfOwzOA0/udmXxCB+jui57NQns/H2+R4dbfZH6UkLDBPi3pOwZAh1eB3uT1kE/Dw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3367.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(8936002)(4744005)(38350700002)(38100700002)(2906002)(8676002)(66476007)(66946007)(66556008)(2616005)(6506007)(316002)(83380400001)(6512007)(508600001)(52116002)(86362001)(36756003)(5660300002)(1076003)(186003)(26005)(110136005)(6486002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7H10e6MrFkWqUAi4NusPGAClIAUnXrd/TNcjgevLkqf24RzTlQKZ6De2etcyp5vFFal9hRgzXct3KZRpk2jCqnDPIXi8LhPLdYwrSNrEKbLaalD2pc9vcgg5zj984jHLsqG9IpftcmdnJPtSjOusQeqpb+gN9160wI1EiWTSs9RWOuJL7bhkgYho0hLNNEVQAYA1elQrHA0iOmXCLGZ0gN+E85l3INM6zNAW+XXzaciX/5V4EbpSAnhRLMIuPgkXmjJVTa2evphnLdmp0f7UWuItqffPpQEq7gbGH+txHoJdR0cu7F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9Yl2WoZQkgLjDR5u6IK9KPdtwCzj+NskVFR/i81rOLczsw47WwBgRaWeeryUoP9tJ1yIRq6HAYVPK1Zq X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5adab59b-bb97-4a1a-5b18-08da08ef0a14 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3367.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2022 14:53:18.9408 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0ZlqbsfBz+GhGICaRu6pvvPMLPpM2muLiY344Z1NIWQl3NqVKRhGrHsrlpedmmPDr4HlK9AC3c8SopGU4JMVLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR06MB4473 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org io->sgl is allocated by kzalloc(). The memory is set to zero. It is unnecessary to call memset again. Signed-off-by: Wan Jiabing --- drivers/scsi/elx/efct/efct_io.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/elx/efct/efct_io.c b/drivers/scsi/elx/efct/efct_io.c index c3247b951a76..c612f0a48839 100644 --- a/drivers/scsi/elx/efct/efct_io.c +++ b/drivers/scsi/elx/efct/efct_io.c @@ -62,7 +62,6 @@ efct_io_pool_create(struct efct *efct, u32 num_sgl) return NULL; } - memset(io->sgl, 0, sizeof(*io->sgl) * num_sgl); io->sgl_allocated = num_sgl; io->sgl_count = 0;