diff options
author | Chen Qun <kuhn.chenqun@huawei.com> | 2020-03-13 20:32:42 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-03-17 11:23:14 +0000 |
commit | a510d0c1cd5e5cf267f9893368bb1c4ee7ccca19 (patch) | |
tree | 3569894ff0dc4fe774a69330ddfcc6defa4e18fa /block/dmg-bz2.c | |
parent | 49cd55789bb17dba161fddf1817209999ce1d319 (diff) |
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>
Diffstat (limited to 'block/dmg-bz2.c')
0 files changed, 0 insertions, 0 deletions