]> Git Repo - qemu.git/commit
hw/net/e1000e: Remove duplicated write handler for FLSWDATA register
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 4 Sep 2020 13:14:02 +0000 (15:14 +0200)
committerLaurent Vivier <[email protected]>
Thu, 10 Sep 2020 14:20:49 +0000 (16:20 +0200)
commitfb1953b22a871d5b4f049d1f2fbf2ff00b4a0c50
tree347cab6eedae2bf961e530a283e92c58c7eef8ac
parent4a4a604cc60cb94525fc4c2d1230557c1e7d166d
hw/net/e1000e: Remove duplicated write handler for FLSWDATA register

The FLSWDATA register writeop handler is initialized twice:

  3067 #define e1000e_putreg(x)    [x] = e1000e_mac_writereg
  3068 typedef void (*writeops)(E1000ECore *, int, uint32_t);
  3069 static const writeops e1000e_macreg_writeops[] = {
  ....
  3102     e1000e_putreg(FLSWDATA),
  ....
  3145     e1000e_putreg(FLSWDATA),

To avoid confusion, remove the duplicated initialization.

Fixes: 6f3fbe4ed0 ("net: Introduce e1000e device emulation")
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Li Qiang <[email protected]>
Message-Id: <20200904131402[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
hw/net/e1000e_core.c
This page took 0.028965 seconds and 4 git commands to generate.