mbox series

[v2,0/3] scsi: libsas: remove empty branches and code simplification

Message ID 20230420143339.2769414-1-yanaijie@huawei.com (mailing list archive)
Headers show
Series scsi: libsas: remove empty branches and code simplification | expand

Message

Jason Yan April 20, 2023, 2:33 p.m. UTC
Three patches to remove two empty branches and a little code
simplification.

v1->v2:
  1. Add blank line after declaration in sas_eeds_valid().
  2. Drop the inner-most and outter-most parenthesis in sas_eeds_valid().
  3. Break the long line in the declaration of sas_check_phy_topology().
  4. Move "else if" to the same line after "}".

Jason Yan (3):
  scsi: libsas: Simplify sas_check_eeds()
  scsi: libsas: Remove an empty branch in sas_check_parent_topology()
  scsi: libsas: Simplify sas_check_parent_topology()

 drivers/scsi/libsas/sas_expander.c | 135 ++++++++++++++++-------------
 1 file changed, 73 insertions(+), 62 deletions(-)