]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: pcnet: Pass private data through dev->priv
authorMarek Vasut <marek.vasut@gmail.com>
Sun, 17 May 2020 16:24:20 +0000 (18:24 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 29 Jun 2020 20:36:35 +0000 (22:36 +0200)
commit834d5cebe582eb71a2c76fc5c9078a3a85b1cafe
tree300358cf4bff803e4c7d14760ffbc9571584188a
parentab6ecbdc3c25761756538129c26d1396dd5b02a9
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