mirror of
https://github.com/ipxe/ipxe
synced 2026-02-07 08:02:49 +03:00
[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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user