sim: Remove self-assignments
authorTsukasa OI <research_trasio@irq.a4lg.com>
Sun, 25 Sep 2022 08:42:02 +0000 (08:42 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 11 Oct 2022 14:18:14 +0000 (15:18 +0100)
commit5294d882ebb5b10f8a246f2c51ffef05622ef16c
treecaee9c913f27d5f9ec18403c9269f49a472a096e
parente9a433bf192ddcadc7e948ef3b4e0ca64f3396e7
sim: Remove self-assignments

Clang generates a warning if there is a redundant self-assignment
("-Wself-assign").  On the default configuration, it causes a build failure
(unless "--disable-werror" is specified).

This commit removes redundant self-assignments from two files.
sim/common/hw-tree.c
sim/ppc/tree.c