e1000: factor out checking for auto-negotiation availability
commitd7a4155265416a1c8f3067b59e68bf5fda1d6215
authorGabriel L. Somlo <gsomlo@gmail.com>
Thu, 19 Jun 2014 19:40:51 +0000 (19 15:40 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Jun 2014 14:38:00 +0000 (23 17:38 +0300)
tree630f4aeb334ec42a8488864090f7f7599c2185bf
parentd52aec95453838f2957c0cbf6ef79c51d161e87f
e1000: factor out checking for auto-negotiation availability

Also fix minor indentation issues in the surrounding code.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/e1000.c