Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp435431rwi; Mon, 10 Oct 2022 02:31:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Ea44Qf4w44JYsyvsYK5SJwZRqegJQUPnkWQMcOhaRZoea9bO6zWheicjwwIz9UiiWm3N3 X-Received: by 2002:a17:907:a068:b0:78d:cbcf:f7bc with SMTP id ia8-20020a170907a06800b0078dcbcff7bcmr219299ejc.519.1665394318272; Mon, 10 Oct 2022 02:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665394318; cv=none; d=google.com; s=arc-20160816; b=larsNmezGb+mHeUIFwTVG9nUiqX5nsbUmrVwLm149c4SP0D/i/BCSh0pyr5LLqZIkq Ywx8tLRYF+EWgb+KJBaTZqFC2ZRWkrldBokMI1Luq5s3J4uuqKw0ts8plseGs71g2Wfu 9gg9tc+1u4+S+QE71EvC0Xgnj/99wqo6LZRr+7vNoMNLNKs5rLpC6Tx70Xvx0oxc5MLX B+OeHvkDdI6AZYkvfJWy8Q5AFuCj8fIm8rP32eR73HEQpoBbBkWaEOof0GuvhZjX6VDx PEGUxRIavXIJGX2Ba9kQhK4D0X1ninFQaIshm08npFd1SsLlZuNToCkEUQigrHx2PWmT G0Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=atGmaLDd1IIC9YR0qLClomH8kGnJ1e+JxBrxwY5UVbM=; b=hQkiSyGbSnIMeAOi4uBlcLXGaaEZDuyTZDbIK8grnxcdcN5CoaIjLaYmTQtg9qjTdO ThfgS1I+GBj+SpXsriyPR1DJ1Nl38oBcOTTk8EJP/K7PFqQwlH1tyqoViVRD7lv2HUgl 9f9L4LSqOhF/kkM5NvcBfcAz4o0I+zOeRs2iBQvtv1t3qRXxQHi+5e4EM0+gDF01N0+D ArTIk9TXqvDAywArqwNVsWwu3Ku3p2s1hJE/7n1beeAOVLfoCIDhNHxr8YdZpCdB4XB6 OgW6YopcEMexUwHGJfbVKM2EPSvTAXB8HcUyyLVekSrmJ+blLEypg9ZNq0pIrybBcsG3 c4Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b="m/2CjXeR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a056402441000b00457137b2571si12995695eda.346.2022.10.10.02.31.16; Mon, 10 Oct 2022 02:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@iokpp.de header.s=strato-dkim-0002 header.b="m/2CjXeR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231627AbiJJJaI (ORCPT + 99 others); Mon, 10 Oct 2022 05:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbiJJJaD (ORCPT ); Mon, 10 Oct 2022 05:30:03 -0400 Received: from mo4-p01-ob.smtp.rzone.de (mo4-p01-ob.smtp.rzone.de [85.215.255.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B06AA1177; Mon, 10 Oct 2022 02:29:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1665394188; s=strato-dkim-0002; d=iokpp.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=atGmaLDd1IIC9YR0qLClomH8kGnJ1e+JxBrxwY5UVbM=; b=m/2CjXeR6DQxG4J/WfUBUBgsESc8Cg7BAs/UBUt+Z9esWHLAmrezjJ0QARjZIUQBwC F8iWPbbkwhucMQP/hKNQ7633ykaK19uMM4KcfBv7aRHIllXcdPEOFYJa2W0wooSyQL4p /fJWeT+/UDv2AuMUWub45bIgaHtgAOVcNtN295c2CZU+0vRwNWm1B0DY6umbC7Szaln+ u3ZLAfAbhia1UMhVCz4AW0DNOUk7/JSG12z4bn9HXAwxVS+FOlhcXfc0ltB0gMnxSyLp YWIYIhplhK74lo6CEzCXNFAQtziwo2mUgUK29CqoRS/A+Nzz90k5RVxkkyXmR74z4v/Q +hTA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":LmkFe0i9dN8c2t4QQyGBB/NDXvjDB6pBSedrgBzPc9DUyubU4DD2QzemV2tdlNlNRZBXiUw=" X-RZG-CLASS-ID: mo00 Received: from linux.micron.com by smtp.strato.de (RZmta 48.2.0 AUTH) with ESMTPSA id zad98cy9A9Tk0DA (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 10 Oct 2022 11:29:46 +0200 (CEST) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, cang@codeaurora.org, daejun7.park@samsung.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Changes for ufshcd.c Date: Mon, 10 Oct 2022 11:29:35 +0200 Message-Id: <20221010092937.520013-1-beanhuo@iokpp.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo v1--v2: 1. change in ufshcd_lu_init() in patch 2/2: 1) Remove duplicate parameter initialization 2) Move lun parameter initialization before kmalloc() Bean Huo (2): scsi: ufs: core: Remove unnecessary if statement scsi: ufs: core: Cleanup ufshcd_slave_alloc() drivers/ufs/core/ufshcd-priv.h | 3 - drivers/ufs/core/ufshcd.c | 151 ++++++++++++--------------------- 2 files changed, 54 insertions(+), 100 deletions(-) -- 2.34.1