From patchwork Fri Mar 12 09:47:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398530 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1050632jai; Fri, 12 Mar 2021 01:49:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBKD9Sl0TL0Vki9kMtxQWWXYS3K7GyiKKygcuW6ANC03XBnIGt58KFA7bSi2MDM2RPYsa9 X-Received: by 2002:aa7:c345:: with SMTP id j5mr12788482edr.338.1615542567513; Fri, 12 Mar 2021 01:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615542567; cv=none; d=google.com; s=arc-20160816; b=BQjt4NkwazBfavrIBv6qi6IUwGhz4PiqCp6gMloeoaTAnxC0x5hUTsfbMr3TxQtfFM g/jHZDVLvdDQaSSgwaGp/JfOXiY1q/sgSW+7iQ6TMFYd6Dofg9MXsYcXmKjKzK7x7in1 J4ikpxncNzwurG68BQGIlBDRWgv/ng5vsryaHNqeWDmjTrO3+LWTVCflmD89gTB5LMK0 of9r1lOV1CaqdKun8JxEmryXRgz/LuySMMArNxjjuBkfxLkpkPExcolANb81rYbrxefQ HG5n2QznqyHJNpBAwfYeybTJcDCVH5EdjUqA3cVlXmoe6uV/xVXT742px3VouA3CEDib Sa0Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jXzZsgME51o5a4S3G/qD/qZyWpfOm8qpjFIuUNjewrU=; b=O6cDv1koxfNCN2AMCo+1NW0GGDME/6s2Ks0cr9LnmrY/0bsuoWvSCz5AcZ3Es+WIV2 nMd14tk+UglpblnZBq41FInqgAQqm2hYrfetPnD5A6lmWY2LHYhEHtdGJrCRRYe9BebW EE5FHDry/+GplZT7zZoFC7g46R+9tDbN6FojdNkeDDsPAa5Ko+zewk+e67K3qjuiU/D7 oAJDdWSzMUhCnmPWoNPLEoMtKEuqz8mKdfa7B6v8avSlI6FZZCY3B5yaPn1dnlu6xssy XVsnS/PIHTNtQo8A1JLnTyZwEbjC2sWvZlmHFpEwgCiPNkqeFrkxKkQwqVlolP9GeNDI BX7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RzDHHxJI; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf6si3710544ejb.272.2021.03.12.01.49.27 for ; Fri, 12 Mar 2021 01:49:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-scsi-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=@linaro.org header.s=google header.b=RzDHHxJI; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbhCLJsr (ORCPT ); Fri, 12 Mar 2021 04:48:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233122AbhCLJsR (ORCPT ); Fri, 12 Mar 2021 04:48:17 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C72F1C0613D9 for ; Fri, 12 Mar 2021 01:48:16 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id 61so1405118wrm.12 for ; Fri, 12 Mar 2021 01:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jXzZsgME51o5a4S3G/qD/qZyWpfOm8qpjFIuUNjewrU=; b=RzDHHxJIrMTYsGLtnjmh448nDAU6vYH3+2i3jhfv9Yf7Bum4BYw4rNx29JA4HMXlZr GxvreTK/UTMpv2fgwZUqNITRSEtDrRDoTYeIy4i0v6XyvSUP/LXNjws7sKFl7xvHR28t L7KansPbqqzqOVIlWPwjjQAXwqyYutcuqDI1IEmGJzo6s0Rb2ryGPRrWAh6ETFs1MQKN bUsQzUYjqKkmbDQSSm3PPwkUOKIQOXogUANenFZMZAdeovFMJAsIzY9qDYnZClEuLIOB DP55HmbJ6u7ZDqmMz3fuwrgH4pvZ6bbdOOXAhc0k9pFfiP6M99cjitSgd/MMUNaG3/lZ D5iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jXzZsgME51o5a4S3G/qD/qZyWpfOm8qpjFIuUNjewrU=; b=HjYp5UbnLfZKKkl+Gn5yssMdqMrPMZGtF7JJHPduG6hZ6sJkHIike/tNlGmvGtyJ+O 2f07QvSpZ9QBpoupd7yQGS6JSNUDFNh1pxG6RdX6iMNDoZaWob5Q+vRBYFsF6Gpp0PKf XwxAF7ajZufexNLiYM58IefEqWvYJORZfi0cpxJldezXMW8UDbqgDEXm23CchRTz6CDf 2Z3tNF9BbR/67RvkJ4I0/z3jaZxfaXububLtCu3jyghMLyWHjGJANYe9RHkwOGsv/VLf SmbJykuDvR+iOfsGRNXpQhkbdVxFf7Y/vD+RIhS5Y9FC+4MjI5nMdThqsBLCq5Rkv0tk IB3Q== X-Gm-Message-State: AOAM533g4ZlzjJiRNH74XiYaW906oNVZ83uTqQz3E9FU+nXpTjyreFqG 5lig20w74KTXk9DfMQjLUQzemg== X-Received: by 2002:adf:a418:: with SMTP id d24mr12943172wra.187.1615542495551; Fri, 12 Mar 2021 01:48:15 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id f7sm1539536wmq.11.2021.03.12.01.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 01:48:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Hannes Reinecke , "James E.J. Bottomley" , "Martin K. Petersen" , Linux GmbH , "Leonard N. Zubkoff" , linux-scsi@vger.kernel.org Subject: [PATCH 27/30] scsi: myrs: Remove a couple of unused 'status' variables Date: Fri, 12 Mar 2021 09:47:35 +0000 Message-Id: <20210312094738.2207817-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312094738.2207817-1-lee.jones@linaro.org> References: <20210312094738.2207817-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/myrs.c: In function ‘consistency_check_show’: drivers/scsi/myrs.c:1193:16: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] drivers/scsi/myrs.c: In function ‘myrs_get_resync’: drivers/scsi/myrs.c:1984:5: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Linux GmbH Cc: "Leonard N. Zubkoff" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/myrs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.27.0 Reviewed-by: Christoph Hellwig diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c index 4adf9ded296aa..48e399f057d5c 100644 --- a/drivers/scsi/myrs.c +++ b/drivers/scsi/myrs.c @@ -1190,7 +1190,6 @@ static ssize_t consistency_check_show(struct device *dev, struct myrs_hba *cs = shost_priv(sdev->host); struct myrs_ldev_info *ldev_info; unsigned short ldev_num; - unsigned char status; if (sdev->channel < cs->ctlr_info->physchan_present) return snprintf(buf, 32, "physical device - not checking\n"); @@ -1199,7 +1198,7 @@ static ssize_t consistency_check_show(struct device *dev, if (!ldev_info) return -ENXIO; ldev_num = ldev_info->ldev_num; - status = myrs_get_ldev_info(cs, ldev_num, ldev_info); + myrs_get_ldev_info(cs, ldev_num, ldev_info); if (ldev_info->cc_active) return snprintf(buf, 32, "checking block %zu of %zu\n", (size_t)ldev_info->cc_lba, @@ -1981,14 +1980,13 @@ myrs_get_resync(struct device *dev) struct myrs_hba *cs = shost_priv(sdev->host); struct myrs_ldev_info *ldev_info = sdev->hostdata; u64 percent_complete = 0; - u8 status; if (sdev->channel < cs->ctlr_info->physchan_present || !ldev_info) return; if (ldev_info->rbld_active) { unsigned short ldev_num = ldev_info->ldev_num; - status = myrs_get_ldev_info(cs, ldev_num, ldev_info); + myrs_get_ldev_info(cs, ldev_num, ldev_info); percent_complete = ldev_info->rbld_lba * 100; do_div(percent_complete, ldev_info->cfg_devsize); }