hw/net/imx_fec: write TGSR and TCSR3 in imx_enet_write()
commita510d0c1cd5e5cf267f9893368bb1c4ee7ccca19
authorChen Qun <kuhn.chenqun@huawei.com>
Fri, 13 Mar 2020 12:32:42 +0000 (13 20:32 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Mar 2020 11:23:14 +0000 (17 11:23 +0000)
tree3569894ff0dc4fe774a69330ddfcc6defa4e18fa
parent49cd55789bb17dba161fddf1817209999ce1d319
hw/net/imx_fec: write TGSR and TCSR3 in imx_enet_write()

The current code causes clang static code analyzer generate warning:
hw/net/imx_fec.c:858:9: warning: Value stored to 'value' is never read
        value = value & 0x0000000f;
        ^       ~~~~~~~~~~~~~~~~~~
hw/net/imx_fec.c:864:9: warning: Value stored to 'value' is never read
        value = value & 0x000000fd;
        ^       ~~~~~~~~~~~~~~~~~~

According to the definition of the function, the two “value” assignments
 should be written to registers.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Message-id: 20200313123242.13236-1-kuhn.chenqun@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/imx_fec.c