[PATCH] mmc: bcm2835-host: Remove duplicate NULL test for cmd
Peng Fan
peng.fan at oss.nxp.com
Tue Jul 29 18:10:21 CEST 2025
On Tue, Jul 29, 2025 at 01:05:13PM +0100, Andrew Goodbody wrote:
>In bcm2835_send_cmd the test for a previous command not being complete
>depends on cmd not being NULL so a second test in the code block is
>redundant as it is guaranteed to be true. Remove the test and the
>unreachable code following it.
>
>This issue was found by Smatch.
>
>Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Reviewed-by: Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list