disk: fix blk_get_device_part_str()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 20 Nov 2022 10:23:24 +0000 (11:23 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Dec 2022 18:17:24 +0000 (19:17 +0100)
commitbe2e42fa95b1ae4d74957f762be33edfadb7bb73
treed1c141ebb69b497a9d11bd06a0cd074560c118c6
parent27380d885d7e17c9bc1f87089d3fe658852c960c
disk: fix blk_get_device_part_str()

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@canonical.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
disk/part.c