ppc440_bamboo: Remove unnecessary memsets
commit1049ff55fe99df87dbec47db27749a88f494e846
authorBALATON Zoltan <balaton@eik.bme.hu>
Sat, 24 Sep 2022 12:27:50 +0000 (24 14:27 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Oct 2022 19:15:09 +0000 (17 16:15 -0300)
treeabc2615ebc7b41cd76bd617cb0227cd422fb25a0
parent9364df267fed0ba079f1f679849b5808f146a257
ppc440_bamboo: Remove unnecessary memsets

In ppc4xx_sdram_init() the struct is allocated with g_new0() so no
need to clear its elements. In the bamboo machine init memset can be
replaced with array initialiser which is shorter.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <529adc7705fb3e3e777439895bdaa136bacb9403.1664021647.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/ppc440_bamboo.c
hw/ppc/ppc4xx_devs.c