public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] scsi: libsas: remove empty branches and code simplification
@ 2023-04-20 14:33 Jason Yan
  2023-04-20 14:33 ` [PATCH v2 1/3] scsi: libsas: Simplify sas_check_eeds() Jason Yan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jason Yan @ 2023-04-20 14:33 UTC (permalink / raw)
  To: martin.petersen, jejb
  Cc: linux-scsi, hare, hch, bvanassche, jinpu.wang, damien.lemoal,
	john.g.garry, Jason Yan

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-04-21  1:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20 14:33 [PATCH v2 0/3] scsi: libsas: remove empty branches and code simplification Jason Yan
2023-04-20 14:33 ` [PATCH v2 1/3] scsi: libsas: Simplify sas_check_eeds() Jason Yan
2023-04-20 15:00   ` Christoph Hellwig
2023-04-21  1:55     ` Jason Yan
2023-04-20 14:33 ` [PATCH v2 2/3] scsi: libsas: Remove an empty branch in sas_check_parent_topology() Jason Yan
2023-04-20 15:02   ` Christoph Hellwig
2023-04-21  1:57     ` Jason Yan
2023-04-20 14:33 ` [PATCH v2 3/3] scsi: libsas: Simplify sas_check_parent_topology() Jason Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox