From patchwork Thu Jul 23 12:24:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11680827 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 623F113A4 for ; Thu, 23 Jul 2020 12:26:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 488CD22D04 for ; Thu, 23 Jul 2020 12:26:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="firLoT+n" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729227AbgGWM0U (ORCPT ); Thu, 23 Jul 2020 08:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729018AbgGWMZY (ORCPT ); Thu, 23 Jul 2020 08:25:24 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D27C0619DC for ; Thu, 23 Jul 2020 05:25:23 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id c80so4795901wme.0 for ; Thu, 23 Jul 2020 05:25:23 -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=1PYc82QmZnWYyBRN6HjG0q6jn6xq3+jiiSrC8xShRHw=; b=firLoT+nF6NP5uE7+rwzyF0eexaFUX6j4RXoRWCBz6fwm1F9siOipBBu+l6A/SZAqN RzQOsrxZlyVMpnEbBw5+3PfgrZCHddC6oDGHkcwuNgkOV332k9wn+tamNuINOLQtP15h apcNbIt/16saNXZZTIcDVmM4flz759qo+WrrYDNv56xmVHDnITyjZFE79Rj3o1ANkBQE nFwmTw85LwCzCAXbhD0Sjbuh9WUjU0UNQOBcEfWiTZrj4eTdDeg2a6uq80zOtVEk6yEh SY4hbFsGjBJ+q8EuwsfkEsvLXs11S4efCbIrAQzgUdean0xxF9c0iAtbpRZtY8lFtwqm CGBw== 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=1PYc82QmZnWYyBRN6HjG0q6jn6xq3+jiiSrC8xShRHw=; b=EtfOroxgt/Mgpwk8pRX0SQSFmGdxeZaw8Oe5fUeE/v6U/SWYWXlUCLVpagwjsTlwfT 9af9iSfVcx3IPXohWp13BMv6DMdnv/0lcVTW0076/oUbAeptjbXZCmyGGeQIvN7wqodI nMWOOw7+pnZEb8zvshuV02mIHfwEPmQw98QUnJJH5DAoD7WQIjhB1QXPY/j398FIj8Rc QZ3DlvSfBD2H1MDlAkeIpYWQcKNYebAa+SDmKt0eG0zGnVzwb60YcrFNeP8MtfA3AZ8Y vT1p/WFn20KsL/lNjESc3/Qg56juCCkRk0PZpr0iSP44lwiKjO3Pd/JwlybevPC2GEaW Fd1w== X-Gm-Message-State: AOAM530qatxrukwgsDez/ZbpmGnkqqYHju1OYptTeE/W1iwGje1HyTgg uuzfMEmIu2lslyjztM7EdogE/Q== X-Google-Smtp-Source: ABdhPJwhScaiEIGilOpKYn2h+6SXYh8OlBq+1Bh9h3JTndjCEmfDrMIN2qZK+2SwNHeheXjeGFgsIw== X-Received: by 2002:a1c:5418:: with SMTP id i24mr3820464wmb.47.1595507122467; Thu, 23 Jul 2020 05:25:22 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:21 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Anil Gurumurthy , Sudarsana Kalluru Subject: [PATCH 27/40] scsi: bfa: bfa_fcs_rport: Remove unused variable 'adisc' Date: Thu, 23 Jul 2020 13:24:33 +0100 Message-Id: <20200723122446.1329773-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-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/bfa/bfa_fcs_rport.c: In function ‘bfa_fcs_rport_process_adisc’: drivers/scsi/bfa/bfa_fcs_rport.c:2243:21: warning: variable ‘adisc’ set but not used [-Wunused-but-set-variable] Cc: Anil Gurumurthy Cc: Sudarsana Kalluru Signed-off-by: Lee Jones --- drivers/scsi/bfa/bfa_fcs_rport.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c index fc294e1950a62..143c35bd668c2 100644 --- a/drivers/scsi/bfa/bfa_fcs_rport.c +++ b/drivers/scsi/bfa/bfa_fcs_rport.c @@ -2240,15 +2240,12 @@ bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport, struct bfa_fcxp_s *fcxp; struct fchs_s fchs; struct bfa_fcs_lport_s *port = rport->port; - struct fc_adisc_s *adisc; bfa_trc(port->fcs, rx_fchs->s_id); bfa_trc(port->fcs, rx_fchs->d_id); rport->stats.adisc_rcvd++; - adisc = (struct fc_adisc_s *) (rx_fchs + 1); - /* * Accept if the itnim for this rport is online. * Else reject the ADISC.