Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp160227pxb; Tue, 31 Aug 2021 17:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPBEhR/nbJMrpYfDHYueClGLodz71dC3eGxKTyIIKKdhiInM3G4e1mlHjQ/x60dL5VuwNO X-Received: by 2002:a17:906:7302:: with SMTP id di2mr33639853ejc.409.1630457766452; Tue, 31 Aug 2021 17:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630457766; cv=none; d=google.com; s=arc-20160816; b=F5XTclSTcm3mEOzX8NzD94dFmGmpVCb6JiDIMLNPPZlv48e5z+oHPaTBWnL+ety6Cc MfVY38g5WTxM9Tv4KjuBY2x4TXdveL7+CT1nBnwwWL37noDr4Qf8Xs2MgGeac//0xhFm fAjHD9viYc9nqS7CP13WlDfAjAFh1CM8ub5FlgB0ulwbh6/+rHRBuGorHBkPmOWtaoin nxoNSWeyRbovkfH4+Z99AdPn2quXWdzH7G8XvdbOWFAO3hr1vvlVaH5qlusis5kbe45P tL4D2DJJqJie9ZD68FLW1AGuo5UWapJrzgMhTPo50qFDotcdcNlR/5Jwi3sqebf56qNw bZGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=gGDb+7FigMgN4FxCep8kmlEfPBvC4hSxrozBLm2y1w0=; b=Pfv4AQR17rlBg8MzXPJXgyTdu8QFI+L0qn17gef9ItuvsDCFNVLXdbZo+HRudJAsC1 Hpn5rgYCWHSYtlfsMOeZFJBVWymkf62ZMBCExwch064vKpGY+SP35tawd0Owr9eXGH3o 08h/BPo2T2CoIJY5X8zsr47hGdGG+N5bDKp4nUVK5ilfQqaMrgDFjinxF2mDjTYlDp/l kbim3EfeErOAvHdZJ7p0bRW7CaSF8v2S8CHDdmjqdLFHzwZJhT3/vo36ycJliDKeQere 7GuB6ZA0WhRqx6KuHOHsC/a89GkDi6E81382EW8enO7k3reHSt9IX9mrUpRhnze66BUB tvVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=QIfrvVP1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si305813edd.9.2021.08.31.17.55.40; Tue, 31 Aug 2021 17:56:06 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=QIfrvVP1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231509AbhIAAyv (ORCPT + 99 others); Tue, 31 Aug 2021 20:54:51 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:52181 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241459AbhIAAyv (ORCPT ); Tue, 31 Aug 2021 20:54:51 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20210901005353epoutp028a4c8c9c8561c55c1f1f53261d8e689d~gjJQsYkFl1667316673epoutp025 for ; Wed, 1 Sep 2021 00:53:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20210901005353epoutp028a4c8c9c8561c55c1f1f53261d8e689d~gjJQsYkFl1667316673epoutp025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1630457633; bh=gGDb+7FigMgN4FxCep8kmlEfPBvC4hSxrozBLm2y1w0=; h=From:To:Cc:Subject:Date:References:From; b=QIfrvVP1l+GIurlBSQDe9d8OTHVnq9k7R5ekik1HScQc6Hur+OnGO2sOSl3HjfEaM 1nfTQtDhRE7Yxrj4gY61ewKov4PF/VElntP9DUlHH2JCYVkkgfZ3mGqvrMIZ9DPNMb bULHMjHoCBsbnJEc6haU961c9IySYLRQH/uz4frg= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20210901005352epcas1p191896656d4786e2329380bd05a3351e6~gjJP_PjUD1377213772epcas1p1v; Wed, 1 Sep 2021 00:53:52 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.38.249]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4GzltR23RZz4x9QL; Wed, 1 Sep 2021 00:53:51 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id BE.A6.09765.F1FCE216; Wed, 1 Sep 2021 09:53:51 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210901005350epcas1p10781b465ef299afd8b2f69e78b39cf5c~gjJOTpFzn1377213772epcas1p1o; Wed, 1 Sep 2021 00:53:50 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210901005350epsmtrp27d2f1a57d8ca67db414a1579c4ea93bf~gjJOSswrs1888918889epsmtrp2_; Wed, 1 Sep 2021 00:53:50 +0000 (GMT) X-AuditID: b6c32a37-915ff70000002625-89-612ecf1ffb1b Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id F1.56.09091.E1FCE216; Wed, 1 Sep 2021 09:53:50 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.100.232]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210901005350epsmtip2a684a2801484bb9819b5c8493dd62906~gjJOFLWEb2900529005epsmtip2m; Wed, 1 Sep 2021 00:53:50 +0000 (GMT) From: Chanwoo Lee To: alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, daejun7.park@samsung.com, beanhuo@micron.com, stanley.chu@mediatek.com, keosung.park@samsung.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: grant.jung@samsung.com, jt77.jang@samsung.com, dh0421.hwang@samsung.com, sh043.lee@samsung.com, ChanWoo Lee Subject: [PATCH v2] scsi: ufs: ufshpb: Remove unused parameters Date: Wed, 1 Sep 2021 09:46:20 +0900 Message-Id: <20210901004620.29929-1-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPJsWRmVeSWpSXmKPExsWy7bCmrq78eb1Eg6OvOS0ezNvGZvHy51U2 i4MPO1ksZpxqY7VY9SDcYt+1k+wWv/6uZ7dYdGMbk8WO52fYLY6ffMdocXnXHDaL7us72CyW H//HZNH0Zx+LxdKtNxkd+D0mLDrA6NFycj+Lx/f1HWweH5/eYvHo27KK0ePzJjmP9gPdTAHs Udk2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUB3KymU JeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIKzAr0ihNzi0vz0vXyUkusDA0MjEyBChOy M1ZOKi54ylXx8+E9tgbG5xxdjBwcEgImEmuPiXYxcnEICexglFj64QY7hPOJUWLt0aMsEM43 RolpMxazdjFygnXM6uxnhEjsZZTYN7eHFcL5wihxbscUVpC5bAJaErePeYM0iAg0MUnsPlsF UsMs0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zzlqvj58B5bA+Nzji5GTg4JAROJWZ39jCC2kMBuRomlLzMg 4lISu/efZ+ti5ACyhSUOHy7uYuQCKvnEKPH35wV2kDibgJbE7WPeIHERgT4miZ2r1jGCOMwC ExglFl95ywwySFjAXuLKohVgNouAqkTD0ytgNq+AtcTObd/YIZbJS/y53wMVF5Q4OfMJC4jN DBRv3jqbeQIj3ywkqVlIUgsYmVYxSqYWFOem5xYbFhjmpZbrFSfmFpfmpesl5+duYgRHgZbm Dsbtqz7oHWJk4mA8xCjBwawkwpv9RitRiDclsbIqtSg/vqg0J7X4EKM0B4uSOO+FrpPxQgLp iSWp2ampBalFMFkmDk6pBiYzCaV85XPz+Xkz2pvTqivCa8o51H9rGZxw3+G39V3YdL3ZjMWL eE4FdX9Z6Vf7Yv+UXRKd32yV1M5v3dfzRXL1v6PR/3RezSm70dE0d6MTo1ecyceigAuTPjI0 s3gpHFQS/fLupso/W3Ymt29dIcvNS/dOf8BwMt79Z/7Pi+nb7z/ey7RvRVzBrMjm1cd60rq6 7NceDM1WsTBsbN58sLelvk+4ZMXO/G8ytz65lARtY25fOJdB9cp6M/n4lkth0hOEbJOnHu9r X9G18O5rN0n2q/scdCo8JGJCdjbK3p0pe/vJvUfnz9xyL7WOW90rMi1ru67K98hYNenjRxn8 n7xcllSiItKx7+v8rXJKn5RYijMSDbWYi4oTAXzdOz3xAgAA X-CMS-MailID: 20210901005350epcas1p10781b465ef299afd8b2f69e78b39cf5c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210901005350epcas1p10781b465ef299afd8b2f69e78b39cf5c References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ChanWoo Lee The following parameters are not used in the function. So, remove unused parameters. *func(): ufshpb_set_hpb_read_to_upiu -> struct ufshpb_lu *hpb -> u32 lpn Signed-off-by: ChanWoo Lee --- v1->v2: * edit description. --- drivers/scsi/ufs/ufshpb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c index 02fb51ae8b25..589af5f6b940 100644 --- a/drivers/scsi/ufs/ufshpb.c +++ b/drivers/scsi/ufs/ufshpb.c @@ -333,9 +333,8 @@ ufshpb_get_pos_from_lpn(struct ufshpb_lu *hpb, unsigned long lpn, int *rgn_idx, } static void -ufshpb_set_hpb_read_to_upiu(struct ufs_hba *hba, struct ufshpb_lu *hpb, - struct ufshcd_lrb *lrbp, u32 lpn, __be64 ppn, - u8 transfer_len, int read_id) +ufshpb_set_hpb_read_to_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp, + __be64 ppn, u8 transfer_len, int read_id) { unsigned char *cdb = lrbp->cmd->cmnd; __be64 ppn_tmp = ppn; @@ -703,8 +702,7 @@ int ufshpb_prep(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) } } - ufshpb_set_hpb_read_to_upiu(hba, hpb, lrbp, lpn, ppn, transfer_len, - read_id); + ufshpb_set_hpb_read_to_upiu(hba, lrbp, ppn, transfer_len, read_id); hpb->stats.hit_cnt++; return 0; -- 2.29.0