net: pcnet: Pass private data through dev->priv
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 17 May 2020 14:47:07 +0000 (16:47 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:34:40 +0000 (19:34 +0200)
commitfdf6cbe54d1bdf217bed9b117ed2a823ae5c8dc2
treecbfc6fcd0830cd49c3d594afbd95a3a420779255
parent60074d9d3ea048ea0ca369687aaaaed65695fc44
net: pcnet: Pass private data through dev->priv

Get rid of the global point to private data, and rather pass it
thought dev->priv. Also remove the unnecessary check for lp being
non-NULL, since it is always NULL at this point.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pcnet.c