Message ID | 20200713080001.128044-5-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2618206ilg; Mon, 13 Jul 2020 01:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCUhXPOlYj1q2KWMT1avt8S6wwolHbCrJ00926wcutrkG32xcp4gI24qTVqAegEZIV0qqZ X-Received: by 2002:a17:906:3009:: with SMTP id 9mr55196192ejz.220.1594627317274; Mon, 13 Jul 2020 01:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594627317; cv=none; d=google.com; s=arc-20160816; b=0OO1vdB7U1wQRCH5X8c6OS5wJz89j3D0hJE9XzwYZVGf623Jap0UHbHMsNP9CovDHW yd0XDJQkxxBC7M9WwqNRCCRHTyKv6Ra6E4jDmiXhW2FI79fYGbW/vvJkBZ5QTFhxdQRx rS8z30cBJw7TArcNiTfFiMUd44NGyiD7Je1eCaKn85hKU8fjGhdu91vFpUZErTQ3VWv4 ovBaaQhSNVKlX/gXhETs5ys5xfgRcAzRsGWTaz4aOJcPQuSNGVK7+cixAAV1iqbsqoVp EYBE3MG5dKyv53BIc6FPhspsJCZnvMm3Z9hh4fKfXHmJMMQ62I6F+tOnqptLP96Gb5hU 6JNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pP2tdu8A1HxZVI+uozY0df9nk/Y+k4UvHam72V3AaIk=; b=c2LYDSqBVVvtayNNrxRUrjb8fqzUsUdpXwblxUV+FeB9JGdm6jWNxQno8FweA/f05y vVwGmuCHJWefgAlGCK8fxZmCcL6Pd+puj/KIJaG6UhK6z0QoVLEIOesLuQna684BQhu7 hktcQ4dkNQMH6dJDv4yBt8SuzL011X4NnITeKT4IF4VP872SV/V1vfc2D4o9lIDgFc30 V75cA0ozj00X8RJvM6GHm0FUYpXzdmWlkAnE0M0izpvX6UhI6jDfAB+AxtY2ezWesDTf L2CWQQAUEfseqQwfFklUm4dnXckRLUvp35RwdIEqJA7ISA1TFuTiKT8CKek0cv+ZwFzz 0WIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="T25D/GMs"; 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: <linux-scsi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si8366687eju.554.2020.07.13.01.01.57 for <patch@linaro.org>; Mon, 13 Jul 2020 01:01:57 -0700 (PDT) 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="T25D/GMs"; 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 S1729115AbgGMIB4 (ORCPT <rfc822;patch@linaro.org>); Mon, 13 Jul 2020 04:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729098AbgGMIAN (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Mon, 13 Jul 2020 04:00:13 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36E28C061755 for <linux-scsi@vger.kernel.org>; Mon, 13 Jul 2020 01:00:13 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id 17so12195030wmo.1 for <linux-scsi@vger.kernel.org>; Mon, 13 Jul 2020 01:00:13 -0700 (PDT) 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=pP2tdu8A1HxZVI+uozY0df9nk/Y+k4UvHam72V3AaIk=; b=T25D/GMsB39AVB8zaj0fkfFfLQfl94lJWTgRAgINBwXbZiUobiHylWdAWUPQs8NY8N EShGivuuRwzNISqkHq72H232buFA86x7FJbnJwaBY15gfAPUL9UmQgoVLaRWeV0N27Fh +GE98AadqTYNvYOzxbqDTVnZqtPEcog70oO07lMstzCPA9yfer7jlkjtB+Gpn3kRNYQe 43wEbibn9ETIws2gFpdqQWVHRJhhHOOcPAp6WhvN2j00IPhBzcrj7eVDtaT1oiSdyv+L 4FgUomueMl9EFtSuf+TxU4tHwzXC9EuaSG8scl6nFLRD1A0506fnEkI30SFinOJd30Av p2NQ== 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=pP2tdu8A1HxZVI+uozY0df9nk/Y+k4UvHam72V3AaIk=; b=s8AuNe9ROiGvBCuVGa8/6k+iSqUbah/ZRCMWohUAPBHdY0Udjn/T8v3dDQMP7vA6iF 1eIeel05pAMoz4rqzhmzwwkDGmCCrNX9HIs86GVEQaaDQ9gXYzVvLlSLibi2TKmXtfDW 14eySlis2ZAPGH6GDi6yWbbsECKP4e+A+rtdS0u9rVlvtc8utI5RmtpL7TkKfA8yna4f wgJcK/ptdBrn9H8M2chWZSDQosl2XYe2JGN3kA/SEZHTLoGQ6sMWB50YgDd18+l+RJBI /y0yOPySiA4RcSF+qpMds6GQws67Hm6Ko3mjTluFUfjai3d222mer65DzAadX8D5oN4W YT3g== X-Gm-Message-State: AOAM531K3NIWrpTItkipp9fHqgNcD/EMSp2HhAUTUuwvbSzKS4sDQPrU +5W5tfOp+lcD1wvpaagoDHI4gQ== X-Received: by 2002:a1c:a70d:: with SMTP id q13mr18717862wme.55.1594627211989; Mon, 13 Jul 2020 01:00:11 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.6]) by smtp.gmail.com with ESMTPSA id 33sm24383549wri.16.2020.07.13.01.00.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 01:00:11 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, Adaptec OEM Raid Solutions <aacraid@microsemi.com>, "PMC-Sierra, Inc" <aacraid@pmc-sierra.com> Subject: [PATCH v2 04/24] scsi: aacraid: dpcsup: Remove unused variable 'status' Date: Mon, 13 Jul 2020 08:59:41 +0100 Message-Id: <20200713080001.128044-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200713080001.128044-1-lee.jones@linaro.org> References: <20200713080001.128044-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Set 3: Fix another set of SCSI related W=1 warnings
|
expand
|
diff --git a/drivers/scsi/aacraid/dpcsup.c b/drivers/scsi/aacraid/dpcsup.c index 25ebb94368f2c..749f8e740ece1 100644 --- a/drivers/scsi/aacraid/dpcsup.c +++ b/drivers/scsi/aacraid/dpcsup.c @@ -230,7 +230,6 @@ static void aac_aif_callback(void *context, struct fib * fibptr) struct fib *fibctx; struct aac_dev *dev; struct aac_aifcmd *cmd; - int status; fibctx = (struct fib *)context; BUG_ON(fibptr == NULL); @@ -250,7 +249,7 @@ static void aac_aif_callback(void *context, struct fib * fibptr) cmd = (struct aac_aifcmd *) fib_data(fibctx); cmd->command = cpu_to_le32(AifReqEvent); - status = aac_fib_send(AifRequest, + aac_fib_send(AifRequest, fibctx, sizeof(struct hw_fib)-sizeof(struct aac_fibhdr), FsaNormal,
Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/dpcsup.c: In function ‘aac_aif_callback’: drivers/scsi/aacraid/dpcsup.c:232:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] 232 | int status; | ^~~~~~ Cc: Adaptec OEM Raid Solutions <aacraid@microsemi.com> Cc: "PMC-Sierra, Inc" <aacraid@pmc-sierra.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/scsi/aacraid/dpcsup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1