aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-09-13 14:30:25 +0100
committerMichael Brown <mcb30@ipxe.org>2023-09-13 16:29:48 +0100
commiteeb7cd56e54e2bc649626988872c170fba37c163 (patch)
treedfc1a3ee5ca1bc46ae23128bbcd2d0b832967a35 /src/include
parent0aa2e4ec963597794dd8f8b36f77f4d0cf4e03c8 (diff)
downloadipxe-eeb7cd56e54e2bc649626988872c170fba37c163.zip
ipxe-eeb7cd56e54e2bc649626988872c170fba37c163.tar.gz
ipxe-eeb7cd56e54e2bc649626988872c170fba37c163.tar.bz2
[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 af932c2..a65dbfd 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