[U-Boot] [PATCH] board_f: drop 'dead code' in ram_top computation

Bin Meng bmeng.cn at gmail.com
Fri Jul 27 09:24:46 UTC 2018


On Fri, Jul 27, 2018 at 5:16 PM, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> gd->ram_top is assigned to twice on consecutive lines and the compiler
> won't be able to tell that the first assignment is dead (including its
> r-value) due to the r-value containing a (side-effect free) function
> call.
>
> This drops the first assignment.
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
>
>  common/board_f.c | 1 -
>  1 file changed, 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list