]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: consolidate work with ethtool_ops
authorJiri Pirko <jiri@resnulli.us>
Mon, 7 Jan 2013 09:02:08 +0000 (09:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2013 03:54:19 +0000 (19:54 -0800)
commit1f9fdb0a03efdf0744a18b7c0f8ca8fc94febf39
treeef31d964177270e7e2b9c5201421425d458b16f1
parent8d15affba1a309c6c8e2e04ab0282fbdcb22c4be
ethtool: consolidate work with ethtool_ops

No need to check if ethtool_ops == NULL since it can't be.
Use local variable "ops" in functions where it is present
instead of dev->ethtool_ops
Introduce local variable "ops" in functions where dev->ethtool_ops is used
many times.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Reviewed-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c