mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-20 11:34:02 +08:00
staging-slicoss: Kill directly reference of netdev->priv
Simply replace netdev->priv with netdev_priv(). Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
979123d534
commit
4bcd426796
@ -765,8 +765,7 @@ static int slic_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||||||
#ifdef SLIC_USER_REQUEST_DUMP_ENABLED
|
#ifdef SLIC_USER_REQUEST_DUMP_ENABLED
|
||||||
case SIOCSLICDUMPCARD:
|
case SIOCSLICDUMPCARD:
|
||||||
{
|
{
|
||||||
struct adapter *adapter = (struct adapter *)
|
struct adapter *adapter = netdev_priv(dev);
|
||||||
dev->priv;
|
|
||||||
struct sliccard *card;
|
struct sliccard *card;
|
||||||
|
|
||||||
ASSERT(adapter);
|
ASSERT(adapter);
|
||||||
@ -1685,7 +1684,7 @@ static void slic_timer_ping(ulong dev)
|
|||||||
struct sliccard *card;
|
struct sliccard *card;
|
||||||
|
|
||||||
ASSERT(dev);
|
ASSERT(dev);
|
||||||
adapter = (struct adapter *)((struct net_device *) dev)->priv;
|
adapter = netdev_priv((struct net_device *)dev);
|
||||||
ASSERT(adapter);
|
ASSERT(adapter);
|
||||||
card = adapter->card;
|
card = adapter->card;
|
||||||
ASSERT(card);
|
ASSERT(card);
|
||||||
@ -3136,7 +3135,7 @@ static void slic_timer_get_stats(ulong dev)
|
|||||||
struct slic_shmem *pshmem;
|
struct slic_shmem *pshmem;
|
||||||
|
|
||||||
ASSERT(dev);
|
ASSERT(dev);
|
||||||
adapter = (struct adapter *)((struct net_device *)dev)->priv;
|
adapter = netdev_priv((struct net_device *)dev);
|
||||||
ASSERT(adapter);
|
ASSERT(adapter);
|
||||||
card = adapter->card;
|
card = adapter->card;
|
||||||
ASSERT(card);
|
ASSERT(card);
|
||||||
|
Loading…
Reference in New Issue
Block a user