From patchwork Wed Sep 28 01:40:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou jie X-Patchwork-Id: 610851 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36BE4C07E9D for ; Wed, 28 Sep 2022 01:40:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232524AbiI1Bki (ORCPT ); Tue, 27 Sep 2022 21:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiI1Bkh (ORCPT ); Tue, 27 Sep 2022 21:40:37 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5565D160E60; Tue, 27 Sep 2022 18:40:36 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 4A7671E80D33; Wed, 28 Sep 2022 09:36:19 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01LCsSIfww9e; Wed, 28 Sep 2022 09:36:16 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhoujie@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 1F5A61E80D70; Wed, 28 Sep 2022 09:36:16 +0800 (CST) From: Zhou jie To: hare@suse.de, jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Zhou jie Subject: [PATCH] scsi: Remove unnecessary (void*) conversions Date: Wed, 28 Sep 2022 09:40:20 +0800 Message-Id: <20220928014020.10746-1-zhoujie@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org The void pointer object can be directly assigned to different structure objects, it does not need to be cast. Signed-off-by: Zhou jie --- include/scsi/libfcoe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index fac8e89aed81..e6be85dfa249 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h @@ -364,7 +364,7 @@ struct fcoe_port { */ static inline struct net_device *fcoe_get_netdev(const struct fc_lport *lport) { - struct fcoe_port *port = ((struct fcoe_port *)lport_priv(lport)); + struct fcoe_port *port = lport_priv(lport); return (port->get_netdev) ? port->get_netdev(lport) : NULL; }