]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitb352182f6ed7374b232a4cf6587b3a7b29f82f4a
treed1c141ebb69b497a9d11bd06a0cd074560c118c6
parent6b35788f34e14ebe98a4f696c41c78bcff01afc5
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