lkml.org 
[lkml]   [2023]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[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(-)

--
2.34.1



\
 
 \ /
  Last update: 2023-03-27 00:00    [W:0.021 / U:0.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site