From patchwork Thu Jul 9 17:45:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235164 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631459ilg; Thu, 9 Jul 2020 10:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6N4X2hRiHTad6W1Mv6UtTV7dSjypoFcgggaGZ+eLDT1YJcJBgLdQYOdenQBvYa8S5dYMn X-Received: by 2002:a50:b065:: with SMTP id i92mr77494057edd.112.1594316768404; Thu, 09 Jul 2020 10:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316768; cv=none; d=google.com; s=arc-20160816; b=uR0YXauefZ3Gf9PHmTiw9THe0sr0bDYD/ZjCV+Eadey063Nzi+ZZVsMfY7yL2n/Aw7 KrEozBhiGGg3bLHbcesGtr00UmnpyH3uVaZ/ZFLBfvwenWpYYKiDO2clxANLEE6P0L/8 7aEOm6i+7vqyv8lmifdzv5D7gr7qfkItZn/lZEcvpE81Czvu6m5iZAmOadXWs3MTXOw4 icc+C41Daq6KqLdJ8hf8qc5Y9yy0NALVugcKdeRWb6OWPS9tnJT+4VKi7AhJpDEBTkM0 meeaNrIoUb+fsKCrSDMto65JhWy832CbxOvCtgafxoQyodnBgMGL8kQ3jICm9gbtQ89d 7B9A== 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=PTmMWIbPCAVBW0KeAP9OqtTrCdcYHBUAcETbWl8BlmrhT2BXL7oH/uFKF93GH+qFnh qDdxfxiJX4MQTmynTotBsSWRZQwpSXBokfEFAKPAoSUJ7PON5ZxCpLDZseMdDz029uxi wHKaaxHWYjyhlUh6y29WuMbg0f+OvP0oSskm9CEed5ePS/Rrxqppxog1B7xWnRImMLMI EQ5ijS4EfNmTAlMEGDA93v6koe0QcP+2oU79E0Z4/qtwzNwnoSwbY3E8bI/DTLedDZCA BK9SWlt3RHSYudR0LeRM2zikzsEOuMtLA3StkxblML1EKd0OO4HaMxNceSMm8weLExzq 6/mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HOjBlIQW; 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 dn22si2359666edb.477.2020.07.09.10.46.08 for ; Thu, 09 Jul 2020 10:46:08 -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=HOjBlIQW; 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 S1728485AbgGIRqH (ORCPT ); Thu, 9 Jul 2020 13:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbgGIRqE (ORCPT ); Thu, 9 Jul 2020 13:46:04 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437BDC08C5CE for ; Thu, 9 Jul 2020 10:46:04 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id f2so3272353wrp.7 for ; Thu, 09 Jul 2020 10:46:04 -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=HOjBlIQW3V9/ieSrhgXZ2CuZd05AGRfyL5watxTrh18Od1QoPikv6mwTbjESssycgO x89pAqUhtiMUDhC8cAGCD+aYRw17aIKhWv/cvtN/XoQZPfdjHxM2Ob/LhIjLRQeA6nQ6 LPmvd6zFFxlTH5y3sOAv7OY8eYWM2pzmJ7S6RmPCzL/FNL8l5g178cG5f2yy6RhXkNcb /BhzmQgbqlVMhQuC+et0xn4j5vPpMd0+LpaTfr/D+ttZ6OxBxMzQsRNOiHOh9aI1uFQO O7K+1TphYfN+lNgseM0qE12H6Aymd88qTmYK7EuLvusxf+PsSCPxYwB8C9qrmt15SeD4 ImSg== 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=PvqDB5aJFLmMUCllIDVXbK6pQJ4ms2TAy59VhTU7NZGMg6qVA6VAZxX9+Rl7rKczvA SEQ1nPWxOeOBfQHSzyocLbdSH+E9tv5MewKv8hKSm27mp65dlcthGUJjlb6lSFMJWBpl q07GrfdobwzMZzJPMopNykvmtG0/muyEMl2Ykbmyx6A4IGjQownqb+9YHgN5R2OWzffy 8/YyfomeqRRX4yCKmUdcULl51+hwoNz9hLcJTClksRkAmibdVKrUPOU4NhHkw+7RepgN RxPIoH2BQE8SrM1eQLCIUJspDAfHJHpVF9ZQqwTqTnzYWbOEtAvU1sd5G7OL5pErTLuP 0jlg== X-Gm-Message-State: AOAM530xOdGUG13kV8UzvCZfV2uHvp2uKUAfW3XzXyfv7yMj3QplZJQ+ iSlUs+OT9cZYfAIQy3eVgznsdw== X-Received: by 2002:adf:f203:: with SMTP id p3mr36428391wro.331.1594316763029; Thu, 09 Jul 2020 10:46:03 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:02 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 04/24] scsi: aacraid: dpcsup: Remove unused variable 'status' Date: Thu, 9 Jul 2020 18:45:36 +0100 Message-Id: <20200709174556.7651-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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 Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/dpcsup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 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,