]> git.dujemihanovic.xyz Git - u-boot.git/commit
ddr: marvell: a38x: debug: return from ddr3_tip_print_log() early if we won't print...
authorMarek Behún <kabel@kernel.org>
Tue, 18 Jun 2024 15:34:25 +0000 (17:34 +0200)
committerStefan Roese <sr@denx.de>
Mon, 8 Jul 2024 06:20:58 +0000 (08:20 +0200)
commitc173f6268d405c0cc83d286192dfdd66bad25368
tree4e9294aac11dfc2a834aa3f75df920f3e849c2a7
parentc416e7ad713117a1eeae598146019efd15d2c4a1
ddr: marvell: a38x: debug: return from ddr3_tip_print_log() early if we won't print anything

Return from ddr3_tip_print_log() early if we won't print anything
anyway.

This way the compiler can optimize away the VALIDATE_IF_ACTIVE() calls
in the for-loop, so if the SILENT_LIB macro is defined, no code is
generated for the rest of the function, which saves some space.

Signed-off-by: Marek Behún <kabel@kernel.org>
drivers/ddr/marvell/a38x/ddr3_debug.c