[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>
This commit is contained in:
Michael Brown
2023-09-13 14:30:25 +01:00
parent 0aa2e4ec96
commit eeb7cd56e5
23 changed files with 182 additions and 193 deletions

View File

@@ -568,17 +568,6 @@ netdev_put ( struct net_device *netdev ) {
ref_put ( &netdev->refcnt );
}
/**
* 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
*