]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/ppc405_boards: Remove unnecessary NULL check
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 20 Mar 2020 15:57:40 +0000 (16:57 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 24 Mar 2020 00:56:37 +0000 (11:56 +1100)
commit1583794b9b36911df116cc726750dadbeeac506a
tree22a040833c4aaa4f844b09ec8a7c4777106bfabd
parent235352ee6e73d7716d20e706d484fd45c232ec09
ppc/ppc405_boards: Remove unnecessary NULL check

This code is inside the "if (dinfo)" condition, so testing
again here whether it is NULL is unnecessary.

Fixes: dd59bcae7 (Don't size flash memory to match backing image)
Reported-by: Coverity (CID 1421917)
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200320155740.5342-1-philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/ppc405_boards.c