]> Git Repo - qemu.git/commit
hw/net/imx_fec: write TGSR and TCSR3 in imx_enet_write()
authorChen Qun <[email protected]>
Fri, 13 Mar 2020 12:32:42 +0000 (20:32 +0800)
committerPeter Maydell <[email protected]>
Tue, 17 Mar 2020 11:23:14 +0000 (11:23 +0000)
commita510d0c1cd5e5cf267f9893368bb1c4ee7ccca19
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 <[email protected]>
Signed-off-by: Chen Qun <[email protected]>
Message-id: 20200313123242[email protected]
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
hw/net/imx_fec.c
This page took 0.023334 seconds and 4 git commands to generate.