]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: usb: gadget: ether: access network_started using local variable
authorMugunthan V N <mugunthanvnm@ti.com>
Fri, 18 Nov 2016 05:19:13 +0000 (10:49 +0530)
committerSimon Glass <sjg@chromium.org>
Sat, 3 Dec 2016 03:53:19 +0000 (20:53 -0700)
commitef715a7a435d74a693da109c0e717a0962d4ae59
treeef6aa19a0c216d40645e1d2d15125abeb35b83cd
parent00dee7cfb095989eb2e1f4dc6faf71fee79c7afa
drivers: usb: gadget: ether: access network_started using local variable

network_started of struct eth_dev can be accessed using local
variable dev and no reason to access it with the global struct.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/usb/gadget/ether.c