Skip to content

scsi: megaraid/megaraid_sas: Use max helper for comparison and assignment

Deepak R Varma linux-scsi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scsi: megaraid: Use max helper for comparison and assignmentdrivers/scsi/megaraid.c+1 -20 replies
2/2scsi: megaraid_sas: Use max helper for comparison and assignmentdrivers/scsi/megaraid/megaraid_sas_base.c+1 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] scsi: megaraid/megaraid_sas: Use max helper for comparison and assignment

This patch set proposes to replace the current if/else or "? :" based logical evaluation and value assignment by the recommended max() helper macro. Resultant code is better in terms of type checking and improved readability.

Deepak R Varma (2):
scsi: megaraid: Use max helper for comparison and assignment
scsi: megaraid_sas: Use max helper for comparison and assignment

 drivers/scsi/megaraid.c                   | 3 +--
 drivers/scsi/megaraid/megaraid_sas_base.c | 5 +----
 2 files changed, 2 insertions(+), 6 deletions(-)
Signature · 1 line
2.34.1