summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2023-09-13 15:30:25 +0200
committerMichael Brown2023-09-13 17:29:48 +0200
commiteeb7cd56e54e2bc649626988872c170fba37c163 (patch)
treedfc1a3ee5ca1bc46ae23128bbcd2d0b832967a35 /src/include
parent[librm] Use explicit operand size when pushing a label address (diff)
downloadipxe-eeb7cd56e54e2bc649626988872c170fba37c163.tar.gz
ipxe-eeb7cd56e54e2bc649626988872c170fba37c163.tar.xz
ipxe-eeb7cd56e54e2bc649626988872c170fba37c163.zip
[netdevice] Remove netdev_priv() helper function
Some network device drivers use the trivial netdev_priv() helper function while others use the netdev->priv pointer directly. Standardise on direct use of netdev->priv, in order to free up the function name netdev_priv() for reuse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/netdevice.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/include/ipxe/netdevice.h b/src/include/ipxe/netdevice.h
index af932c25..a65dbfd2 100644
--- a/src/include/ipxe/netdevice.h
+++ b/src/include/ipxe/netdevice.h
@@ -569,17 +569,6 @@ netdev_put ( struct net_device *netdev ) {
}
/**
- * Get driver private area for this network device
- *
- * @v netdev Network device
- * @ret priv Driver private area for this network device
- */
-static inline __attribute__ (( always_inline )) void *
-netdev_priv ( struct net_device *netdev ) {
- return netdev->priv;
-}
-
-/**
* Get per-netdevice configuration settings block
*
* @v netdev Network device