Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED16BC27C76 for ; Sat, 28 Jan 2023 10:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234058AbjA1Kiu (ORCPT ); Sat, 28 Jan 2023 05:38:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbjA1Kir (ORCPT ); Sat, 28 Jan 2023 05:38:47 -0500 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48DDF7752A; Sat, 28 Jan 2023 02:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1674902315; bh=Qf1j0H73Nv8f2iy3YuNlNYJSuoKVTL34r6A9vrjmjk8=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:MIME-Version: Content-Type; b=YHVjWbSFlyv5MgHKTMxmxcUrL+mSNCu6IqISx32ObU6bAeZ0bL/fBKni6t5R9LW24 Xwav1oBmWonskrp3SJsom4eXreP3kbbt3REBOonPtOxnnYnMSC58Pl5b+Txh6yVIkn XADUf+LX8xx7C+M04q7pyRL8TZ9nMq+F0kFxwOGg= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sat, 28 Jan 2023 11:38:35 +0100 (CET) X-EA-Auth: ZizyT+JKiUVNqc1hAoM1JFLj/hxNuqa2tHITJgmEKqR5OIhY+AUGsbPXjaTRUX5bgePdTS5CQxY0U3ys2ggAXC0c5tX502q0 Date: Sat, 28 Jan 2023 16:08:31 +0530 From: Deepak R Varma To: Kashyap Desai , Sumit Saxena , Shivasharan S , "James E.J. Bottomley" , "Martin K. Petersen" , megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Saurabh Singh Sengar , Praveen Kumar , Deepak R Varma Subject: [PATCH 0/2] scsi: megaraid/megaraid_sas: Use max helper for comparison and assignment Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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