From patchwork Sun Sep 10 12:18:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christos Gkekas X-Patchwork-Id: 9946261 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6795D6032B for ; Sun, 10 Sep 2017 12:19:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 626B628A90 for ; Sun, 10 Sep 2017 12:19:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5737128A91; Sun, 10 Sep 2017 12:19:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1177B28A8F for ; Sun, 10 Sep 2017 12:19:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751556AbdIJMTA (ORCPT ); Sun, 10 Sep 2017 08:19:00 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35394 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbdIJMS6 (ORCPT ); Sun, 10 Sep 2017 08:18:58 -0400 Received: by mail-wr0-f196.google.com with SMTP id n64so3198433wrb.2; Sun, 10 Sep 2017 05:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=qyDPnucMq68X+5Ge8yvkZ6U82zWmumtAHEvNyQYxjoU=; b=p32GFh3JmR7T5z/a6N+KmSgAgPJA5f+spKv0qYaCx5BKcEVaoU30KCToKmBYVEHaiR aFiXporklc7tDImJE2ZlEbIeqlEzg27M9omH11ATZm7pQIb9AjXko5elNSPgCS4bn9oM Oe6zcs08qzqK2dDD0H08XkHlnKGetvH1LF/6SsOT6q5koFQx2zm4DgZqi1C2uxeMlGEL V9bPYpGxdKgYG1QrlePUvk75uAMtc0RO6um2rkt2dYBZU+9b0rPC11o8FZ9WM0zyozUP 15o3/PlC+VvLiTHzHGiMhwOWvNdk3s2aMyfMLNyzxPUG0Wswg18jLLAJ6cUeh65qwjxM 863w== 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; bh=qyDPnucMq68X+5Ge8yvkZ6U82zWmumtAHEvNyQYxjoU=; b=aR4nU+sF2FGSJDO1WUfx0tTzlAkt5MoKvTr3s5jRRcv0EEAp5zVL0ozloCKBWoczIH aFNh0gwPqb7EGcuVNfyq9HYSCy0Ws9apMFyZ2TkNfZ7dzcIx0Ng7gvJODTspTWXIg7Nq zfeKYpOVh3uEzAyAKfM6n5HRhJNX6ifBapzDEZj6gbL9Mh5zoKQwPrsj2Yn5956o3SgT fpRqkCy3VQNTyQO4rfGtylen3QMNrcYETPfig9zibNwxB/IG7ppcGHqe7RsFDcywNQsN F947gJN6czuhUYwdXaPh4AQ+Q4rNW94s3AZxuW4ab761B34yfe80jsNrBXBb0zKlZs8v H0Ww== X-Gm-Message-State: AHPjjUjza5PTkzaknZ2561ts/ZYvEKrhq44cVDaQVO2LlxFvX0SYXb8M qXScq78GLbVp9jEFYI93CQ== X-Google-Smtp-Source: ADKCNb7+IXnBO2Bgz6Woar0jM7VyHRxALzUaEVvi4GXlIQ34Nj+RtSp2xeYge7UH9/tzZ77u3WOWlw== X-Received: by 10.223.131.193 with SMTP id 59mr6118444wre.157.1505045937539; Sun, 10 Sep 2017 05:18:57 -0700 (PDT) Received: from inspiron ([2a02:c7d:5e0c:c300:91c1:72df:cbda:599b]) by smtp.gmail.com with ESMTPSA id f19sm11938362wrf.85.2017.09.10.05.18.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Sep 2017 05:18:56 -0700 (PDT) From: Christos Gkekas To: QLogic-Storage-Upstream@qlogic.com, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christos Gkekas Subject: [PATCH] bnx2i: Clean up unused pointers in bnx2i_hwi Date: Sun, 10 Sep 2017 13:18:54 +0100 Message-Id: <1505045934-16272-1-git-send-email-chris.gekas@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pointers bnx2i_cmd are set but never used, so they can be removed. Signed-off-by: Christos Gkekas Acked-by: Manish Rangankar --- drivers/scsi/bnx2i/bnx2i_hwi.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 42921db..e3f22cb 100644 --- a/drivers/scsi/bnx2i/bnx2i_hwi.c +++ b/drivers/scsi/bnx2i/bnx2i_hwi.c @@ -332,12 +332,10 @@ static void bnx2i_ring_dbell_update_sq_params(struct bnx2i_conn *bnx2i_conn, int bnx2i_send_iscsi_login(struct bnx2i_conn *bnx2i_conn, struct iscsi_task *task) { - struct bnx2i_cmd *bnx2i_cmd; struct bnx2i_login_request *login_wqe; struct iscsi_login_req *login_hdr; u32 dword; - bnx2i_cmd = (struct bnx2i_cmd *)task->dd_data; login_hdr = (struct iscsi_login_req *)task->hdr; login_wqe = (struct bnx2i_login_request *) bnx2i_conn->ep->qp.sq_prod_qe; @@ -391,12 +389,10 @@ int bnx2i_send_iscsi_tmf(struct bnx2i_conn *bnx2i_conn, struct iscsi_tm *tmfabort_hdr; struct scsi_cmnd *ref_sc; struct iscsi_task *ctask; - struct bnx2i_cmd *bnx2i_cmd; struct bnx2i_tmf_request *tmfabort_wqe; u32 dword; u32 scsi_lun[2]; - bnx2i_cmd = (struct bnx2i_cmd *)mtask->dd_data; tmfabort_hdr = (struct iscsi_tm *)mtask->hdr; tmfabort_wqe = (struct bnx2i_tmf_request *) bnx2i_conn->ep->qp.sq_prod_qe; @@ -463,12 +459,10 @@ int bnx2i_send_iscsi_tmf(struct bnx2i_conn *bnx2i_conn, int bnx2i_send_iscsi_text(struct bnx2i_conn *bnx2i_conn, struct iscsi_task *mtask) { - struct bnx2i_cmd *bnx2i_cmd; struct bnx2i_text_request *text_wqe; struct iscsi_text *text_hdr; u32 dword; - bnx2i_cmd = (struct bnx2i_cmd *)mtask->dd_data; text_hdr = (struct iscsi_text *)mtask->hdr; text_wqe = (struct bnx2i_text_request *) bnx2i_conn->ep->qp.sq_prod_qe; @@ -541,11 +535,9 @@ int bnx2i_send_iscsi_nopout(struct bnx2i_conn *bnx2i_conn, char *datap, int data_len, int unsol) { struct bnx2i_endpoint *ep = bnx2i_conn->ep; - struct bnx2i_cmd *bnx2i_cmd; struct bnx2i_nop_out_request *nopout_wqe; struct iscsi_nopout *nopout_hdr; - bnx2i_cmd = (struct bnx2i_cmd *)task->dd_data; nopout_hdr = (struct iscsi_nopout *)task->hdr; nopout_wqe = (struct bnx2i_nop_out_request *)ep->qp.sq_prod_qe; @@ -602,11 +594,9 @@ int bnx2i_send_iscsi_nopout(struct bnx2i_conn *bnx2i_conn, int bnx2i_send_iscsi_logout(struct bnx2i_conn *bnx2i_conn, struct iscsi_task *task) { - struct bnx2i_cmd *bnx2i_cmd; struct bnx2i_logout_request *logout_wqe; struct iscsi_logout *logout_hdr; - bnx2i_cmd = (struct bnx2i_cmd *)task->dd_data; logout_hdr = (struct iscsi_logout *)task->hdr; logout_wqe = (struct bnx2i_logout_request *)