Message ID | 20250617095611.89229-3-avri.altman@sandisk.com |
---|---|
State | New |
Headers | show |
Series | scsi: ufs: Two minor optimizations in query UPIU preparation | expand |
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index c2048aca09fc..84165b45467d 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -2835,7 +2835,7 @@ static inline void ufshcd_prepare_utp_nop_upiu(struct ufshcd_lrb *lrbp) memset(ucd_req_ptr, 0, sizeof(struct utp_upiu_req)); ucd_req_ptr->header = (struct utp_upiu_header){ - .transaction_code = UPIU_TRANSACTION_NOP_OUT, + /* .transaction_code = UPIU_TRANSACTION_NOP_OUT = 0x0, */ .task_tag = lrbp->task_tag, }; }
UPIU_TRANSACTION_NOP_OUT is 0x0, which is the default value after memset. Comment out the explicit assignment and leave it as documentation. Signed-off-by: Avri Altman <avri.altman@sandisk.com> --- drivers/ufs/core/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)