scsi: libsas: Simplify sas_check_eeds()
authorJason Yan <yanaijie@huawei.com>
Fri, 21 Apr 2023 09:37:42 +0000 (17:37 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 8 May 2023 11:16:18 +0000 (07:16 -0400)
commite3be011e828037be60fc91fa2d1791f9ee612a46
treec6912eb6fda3c5d96d3d06f812abe0fa451097ca
parentac9a78681b921877518763ba0e89202254349d1b
scsi: libsas: Simplify sas_check_eeds()

In sas_check_eeds() there is an empty branch. We can reverse the test
expression and then remove the empty branch. Also the test expression is a
little bit complex so it deserves an individual function. And make the
continuing prototype lines indented after the opening parenthesis to follow
the standard coding style.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20230421093744.1583609-2-yanaijie@huawei.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libsas/sas_expander.c