]> 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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 22 Jun 2020 17:51:56 +0000 (12:51 -0500)
commit745859d5bf33f5ff80f00499c822079d9335d3ed
tree316a5d6d4934104b8f036891de6a40735a7dbba9
parentc6decabc4a30b841e031a838206286db6ad343bc
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>
(cherry picked from commit 1583794b9b36911df116cc726750dadbeeac506a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/ppc405_boards.c