[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220203215140.969227-4-anthony.l.nguyen@intel.com>
Date: Thu, 3 Feb 2022 13:51:36 -0800
From: Tony Nguyen <anthony.l.nguyen@...el.com>
To: davem@...emloft.net, kuba@...nel.org
Cc: netdev@...r.kernel.org, anthony.l.nguyen@...el.com,
sassmann@...hat.com, shiraz.saleem@...el.com,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Gurucharan G <gurucharanx.g@...el.com>
Subject: [PATCH net-next 3/7] i40e: remove enum i40e_client_state
From: Jakub Kicinski <kuba@...nel.org>
It's not used.
Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
Tested-by: Gurucharan G <gurucharanx.g@...el.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@...el.com>
---
include/linux/net/intel/i40e_client.h | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/include/linux/net/intel/i40e_client.h b/include/linux/net/intel/i40e_client.h
index 6b3267b49755..ed42bd5f639f 100644
--- a/include/linux/net/intel/i40e_client.h
+++ b/include/linux/net/intel/i40e_client.h
@@ -26,11 +26,6 @@ struct i40e_client_version {
u8 rsvd;
};
-enum i40e_client_state {
- __I40E_CLIENT_NULL,
- __I40E_CLIENT_REGISTERED
-};
-
enum i40e_client_instance_state {
__I40E_CLIENT_INSTANCE_NONE,
__I40E_CLIENT_INSTANCE_OPENED,
@@ -190,11 +185,6 @@ struct i40e_client {
const struct i40e_client_ops *ops; /* client ops provided by the client */
};
-static inline bool i40e_client_is_registered(struct i40e_client *client)
-{
- return test_bit(__I40E_CLIENT_REGISTERED, &client->state);
-}
-
void i40e_client_device_register(struct i40e_info *ldev, struct i40e_client *client);
void i40e_client_device_unregister(struct i40e_info *ldev);
--
2.31.1
Powered by blists - more mailing lists