[PATCH 1/1] disk: fix blk_get_device_part_str()

Heiko Schocher hs at denx.de
Mon Nov 21 06:52:42 CET 2022


Hello Heinrich,

On 20.11.22 13:13, Heinrich Schuchardt wrote:
> blk_get_device_part_str() should always initialize all info fields
> including sys_ind. As a side effect the code is simplified.
> 
> Replace '(0 ==' by '(!' to conform with Linux coding style.
> 
> Fixes: 4d907025d6a5 ("sandbox: restore ability to access host fs through standard commands")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  disk/part.c | 23 +++++------------------
>  1 file changed, 5 insertions(+), 18 deletions(-)

Looks good to me, thanks!

Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list