Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1829267rwb; Tue, 27 Sep 2022 20:07:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7DjQwQLON5s6fGUsjd9dujOjQU4utFe4TLMD8Yn4XdQDIyP2yc7khBiv/pJlqCOB5YkcOe X-Received: by 2002:a05:6a00:2316:b0:548:58b6:b17c with SMTP id h22-20020a056a00231600b0054858b6b17cmr32205148pfh.53.1664334433535; Tue, 27 Sep 2022 20:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664334433; cv=none; d=google.com; s=arc-20160816; b=xknpvahe3LWHDkB01HmBK74iCmFFDofl38ihv/aFOILQVUieLerOUF+4uHovv5vK5o 9pEn9fAnA1Sviw0pAPj5X27VcSoztUeQixmTp8xysXBVjD3sXEqN0HepfYzRXZ3qoz6z JMKeN4RuKuUSTimLj5PV7h0e2B8KqIGTREbYWSILGFBMG9dJPBHYuBkKO/IbH5hw0w+l oEGLQ1LdqREUsqYf54axoDZG9W/QHwdSD7bnF06DnzjL7gi/e1vHBwIZkpvYV/fQiqgg jqAhlB5bflYO/BcDfX4CwhGnNjsUIGqVIx34cZCjqq4aq3ozCsRhkK9Q2+qNRy1R/uxq 3oFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=a04tKMiNNKRi/cnsnxgreePbhPMbxzrzHrdT9vX5p0c=; b=fJ2KkjlwzwMNbbQHCzK9qeGPjSTJPyMYNLveX19MjbBGOHBCJ3sp4Z/XymGRcw7p/L 7EN4kevddtMkMNWnHHUQCep7lqXGlLZj2u11h/DOngg23rkK05Tn2Ln1redNszPZAxjo UAahJidSiNUCivZpDl+ii88hOWeeCI0qWkDV4GtE+xacWcqHeA/LvmGdCaUzokr+OP4s XpAWzaLWyHNQ5mgQBQTMDLIQDYMwWzrup3y1hr040uHgHct4sbxvxfs9GIaR8trqVCkk 6ZAxIqniVvrK8Ao1w5OJJZJMP6OtQcG9Jkb2JrKIyBkbf0AVgBlkmr3LJSC5v7DXrqG+ bDHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me2-20020a17090b17c200b00205de9ed2ffsi956515pjb.43.2022.09.27.20.06.59; Tue, 27 Sep 2022 20:07:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232557AbiI1Bkj (ORCPT + 99 others); Tue, 27 Sep 2022 21:40:39 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; } -- 2.18.2