From patchwork Fri Jan 25 14:22:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 156592 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp417418jaa; Fri, 25 Jan 2019 06:22:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN5FqmeFy0tHD/CT3zwDmPrbM8hpZoFjHA2wxzSkYoKjY0/UdjF3nbMVFouiRPwvFgJKzLT4 X-Received: by 2002:a17:902:4222:: with SMTP id g31mr11154960pld.240.1548426131500; Fri, 25 Jan 2019 06:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548426131; cv=none; d=google.com; s=arc-20160816; b=t9OCl1AXgJOwlpcCessYKB6rD/MZyAhOx1cx86o9gFE1QFEg7H6As7iIItgSOna75U XdigTfQZY1PNVU/IitzNaT3+Mw29kpeMn11B2aJGFiBc5QBaY/C/9KuWTzDv7Sichfyh GE4m6E06VVZD6aFjD9w2v29VTuBguN8i0hb3k8dWzKmpumeXBSvf8jvUmsXwA8m6KcoY FUSsq8ijpJw/B/11EIoloRwgIlzE1EGBd2xoOc5XnDb/DFk1snTH2zGeIhBE6MCFHyNe 4olW9PS5GqMN/QUjY+p0vNzX7/AG6cRsUHq0vr3VG1wDsKgCTxHbAhl8SI6/V5nMyUKs wI0g== 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=Llq0dncrX2lks6c3bwOxJsRmiL8zwkvK9Qshxo8tZEI=; b=ySfxZ01yir5nYvf89DCdd6g76NGyzJJbvDHT5T6EUElqTRZ4TZTZqIJy5TL8LRN/ZI TWRfv+J0/I2/1fjyOC8p29KKGePfjcZdYXeHGgCKKh19DLaOi/kUAfsHg2d9jTsPdLq/ PPWuaCieXbybZkNWceIY3E41jKxjvAG1b2f3LKG2kx0oLM9sHNBP0ozz5N/cF//vQgw/ PQahgAxN8tK4NY5a1nw7oKYHzrYoFYtXc5XvfMT/+uDb5oeE0Obp5nxTdqQHQDkJZhTS rUhuSiaykNzgb8SdKZ8l4Mh8EkBQ89vh0oBA1y5RFe2EEnWVXvcJDJsi5wrV0T/cDhRm bxMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si22659376pgi.158.2019.01.25.06.22.11; Fri, 25 Jan 2019 06:22:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbfAYOWJ (ORCPT + 31 others); Fri, 25 Jan 2019 09:22:09 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2762 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728877AbfAYOWF (ORCPT ); Fri, 25 Jan 2019 09:22:05 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4EA7CB86A3C2B86381CA; Fri, 25 Jan 2019 22:21:59 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Fri, 25 Jan 2019 22:21:52 +0800 From: John Garry To: , CC: , , , Xiang Chen , "John Garry" Subject: [PATCH 07/13] scsi: hisi_sas: Remove unused parameter of function hisi_sas_alloc() Date: Fri, 25 Jan 2019 22:22:33 +0800 Message-ID: <1548426159-225679-8-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1548426159-225679-1-git-send-email-john.garry@huawei.com> References: <1548426159-225679-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen Actually in function hisi_sas_alloc(), parameter shost is not used, so remove it. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 4 ++-- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index aac8b38..235b819 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -497,7 +497,7 @@ struct hisi_sas_slot_buf_table { extern struct dentry *hisi_sas_debugfs_dir; extern void hisi_sas_stop_phys(struct hisi_hba *hisi_hba); -extern int hisi_sas_alloc(struct hisi_hba *hisi_hba, struct Scsi_Host *shost); +extern int hisi_sas_alloc(struct hisi_hba *hisi_hba); extern void hisi_sas_free(struct hisi_hba *hisi_hba); extern u8 hisi_sas_get_ata_protocol(struct host_to_dev_fis *fis, int direction); diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index b57a44b..8f7f82d 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -2074,7 +2074,7 @@ void hisi_sas_init_mem(struct hisi_hba *hisi_hba) } EXPORT_SYMBOL_GPL(hisi_sas_init_mem); -int hisi_sas_alloc(struct hisi_hba *hisi_hba, struct Scsi_Host *shost) +int hisi_sas_alloc(struct hisi_hba *hisi_hba) { struct device *dev = hisi_hba->dev; int i, j, s, max_command_entries = hisi_hba->hw->max_command_entries; @@ -2358,7 +2358,7 @@ static struct Scsi_Host *hisi_sas_shost_alloc(struct platform_device *pdev, goto err_out; } - if (hisi_sas_alloc(hisi_hba, shost)) { + if (hisi_sas_alloc(hisi_hba)) { hisi_sas_free(hisi_hba); goto err_out; } diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index d5eabfc..4b628c2 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -2591,7 +2591,7 @@ static void debugfs_snapshot_restore_v3_hw(struct hisi_hba *hisi_hba) if (hisi_sas_get_fw_info(hisi_hba) < 0) goto err_out; - if (hisi_sas_alloc(hisi_hba, shost)) { + if (hisi_sas_alloc(hisi_hba)) { hisi_sas_free(hisi_hba); goto err_out; }