Re: [PATCH v2] Revert "scsi: ufs: core: Probe for EXT_IID support"

From: Bart Van Assche
Date: Thu Jan 02 2025 - 19:55:18 EST


On 1/1/25 5:41 AM, Avri Altman wrote:
Although added a while ago, to date no one make use of ext_iid,
specifically incorporates it in the upiu header. Therefore, remove it
as it is just a dead code.

Hi Avri,

Although the patch itself looks fine to me, is the description
accurate? "dead code" means code that is not executed. I think that
the code removed by this patch gets executed?

diff --git a/include/ufs/ufshci.h b/include/ufs/ufshci.h
index 27364c4a6ef9..155f0801e907 100644
--- a/include/ufs/ufshci.h
+++ b/include/ufs/ufshci.h
@@ -23,7 +23,7 @@ enum {
/* UFSHCI Registers */
enum {
REG_CONTROLLER_CAPABILITIES = 0x00,
- REG_MCQCAP = 0x04,
+ REG_MCQCAP = 0x04,

Is this whitespace-only change really necessary?

Thanks,

Bart.