[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1503935147.2841.25.camel@wdc.com>
Date: Mon, 28 Aug 2017 15:45:49 +0000
From: Bart Van Assche <Bart.VanAssche@....com>
To: "linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
"alim.akhtar@...sung.com" <alim.akhtar@...sung.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "martin.petersen@...cle.com" <martin.petersen@...cle.com>,
"JBottomley@...n.com" <JBottomley@...n.com>,
"vinholikatti@...il.com" <vinholikatti@...il.com>
Subject: Re: [PATCH] scsi: ufs: Make use of UFS_BIT macro wherever possible
On Mon, 2017-08-28 at 17:49 +0530, Alim Akhtar wrote:
> This entire file uses UFS_BIT macro for bits definition, expect for few
> places. This patch convert those defines to use UFS_BIT macro to be aligned
> with reset of the file.
This is the definition of the UFS_BIT() macro I found in
drivers/scsi/ufs/ufshci.h:
#define UFS_BIT(x) (1L << (x))
Using this macro makes code longer instead of shorter and does not improve
code readability. Is this macro really useful? Wouldn't it be better to
remove the UFS_BIT() macro instead of introducing more uses of it?
Thanks,
Bart.
Powered by blists - more mailing lists