diff options
author | 2023-04-21 17:37:43 +0800 | |
---|---|---|
committer | 2023-05-08 07:16:18 -0400 | |
commit | ba9be7e70e15dd75375131826f4b8a484efec4d0 (patch) | |
tree | 31957a2e5485b5b5ae666463de67dbd945e18d63 /include/linux/blk_types.h | |
parent | scsi: libsas: Simplify sas_check_eeds() (diff) | |
download | wireguard-linux-ba9be7e70e15dd75375131826f4b8a484efec4d0.tar.xz wireguard-linux-ba9be7e70e15dd75375131826f4b8a484efec4d0.zip |
scsi: libsas: Remove an empty branch in sas_check_parent_topology()
There is an empty "all good" branch in sas_check_parent_topology(). We can
reverse the test statement and remove the empty branch.
Moreover, factor out a helper sas_check_edge_expander_topo() to make the
code more readable.
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20230421093744.1583609-3-yanaijie@huawei.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/blk_types.h')
0 files changed, 0 insertions, 0 deletions