From patchwork Thu Apr 11 21:53:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10896961 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E83F314DB for ; Thu, 11 Apr 2019 21:53:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3C6328E2A for ; Thu, 11 Apr 2019 21:53:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D244D28E2C; Thu, 11 Apr 2019 21:53:50 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham 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 8459128E3A for ; Thu, 11 Apr 2019 21:53:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbfDKVxu (ORCPT ); Thu, 11 Apr 2019 17:53:50 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36228 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbfDKVxu (ORCPT ); Thu, 11 Apr 2019 17:53:50 -0400 Received: by mail-pf1-f196.google.com with SMTP id z5so4089089pfn.3 for ; Thu, 11 Apr 2019 14:53:49 -0700 (PDT) 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=uWfgUnvsfIqrrIDg6Rya39njhAnt3/6deRSuwEmaPLk=; b=NmJxA/8yaeAKaLwYzCBdfFdpOWfcifx8WOKVMsYwhzFiL9/91L0reUWgii9jajl0kb lZ6ELcl35Gd7uZwWYmHxVs82enw4aOsgIH/vqVUeoao42tkUJfdnpqnR80heHiNGfdtY 6XDn04ZO1unTiN6MbhuaoMrpipN6bD4oqgeaEix4v0Csnfzo9bgQK2/tcEGBoI8VqdLq lOWWVhnSB6gv3g+EeytdpkHSn1zfT6ipRVHfUgm8vV+VEzqkvP+1Ie56gK4Bm92XtxAI KhNMIs3YqFZQarZ6qfE48e1SgRQZct/+yoZmPzec0pvfqBUG+4KjrLg+AGug6SbXXLlj pwLA== X-Gm-Message-State: APjAAAXpizYwii5a866+mY0rf6SsA48XAAEepUsfYRBXcoczWHlscj8p 5rlI7fcOuPMZRLxiCl+tsgg= X-Google-Smtp-Source: APXvYqxHrIj4zopMOJgg+EatlrrJrtO5hrYJSQdILOG2WJXEr01++fBEQcKEKE5HGR/7iCvPY60TVg== X-Received: by 2002:aa7:9ab1:: with SMTP id x17mr46896347pfi.4.1555019628475; Thu, 11 Apr 2019 14:53:48 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id o67sm91651066pga.55.2019.04.11.14.53.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 14:53:47 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , "James E . J . Bottomley" Cc: linux-scsi@vger.kernel.org, Christoph Hellwig , Bart Van Assche , Himanshu Madhani , Giridhar Malavali Subject: [PATCH 09/10] qla2xxx: Remove two superfluous casts Date: Thu, 11 Apr 2019 14:53:24 -0700 Message-Id: <20190411215325.122837-10-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT In-Reply-To: <20190411215325.122837-1-bvanassche@acm.org> References: <20190411215325.122837-1-bvanassche@acm.org> MIME-Version: 1.0 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 Casting a void pointer into another pointer before assigning the pointer to a variable is not useful. Hence remove such casts. Cc: Himanshu Madhani Cc: Giridhar Malavali Signed-off-by: Bart Van Assche --- drivers/scsi/qla2xxx/qla_target.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 3bf4d15472f7..57cdd762230d 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -4037,7 +4037,7 @@ static void qlt_do_ctio_completion(struct scsi_qla_host *vha, return; } - cmd = (struct qla_tgt_cmd *)qlt_ctio_to_cmd(vha, rsp, handle, ctio); + cmd = qlt_ctio_to_cmd(vha, rsp, handle, ctio); if (cmd == NULL) return; @@ -5831,8 +5831,7 @@ static void qlt_handle_abts_completion(struct scsi_qla_host *vha, struct qla_tgt_mgmt_cmd *mcmd; struct qla_hw_data *ha = vha->hw; - mcmd = (struct qla_tgt_mgmt_cmd *)qlt_ctio_to_cmd(vha, rsp, - pkt->handle, pkt); + mcmd = qlt_ctio_to_cmd(vha, rsp, pkt->handle, pkt); if (mcmd == NULL && h != QLA_TGT_SKIP_HANDLE) { ql_dbg(ql_dbg_async, vha, 0xe064, "qla_target(%d): ABTS Comp without mcmd\n",