Skip to content

Commit a3f1ca3

Browse files
committed
REtest
1 parent e7e0510 commit a3f1ca3

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/nvme/mi.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -499,14 +499,9 @@ static inline __u32 nvme_mi_aem_aeolli_get_aeoltl(__u8 *aeolli)
499499

500500
static inline void nvme_mi_aem_aeolli_set_aeoltl(__u32 aeoltl, struct nvme_mi_aem_occ_list_hdr *hdr)
501501
{
502-
fprintf(stderr, "Set AEOTL: %d\n", aeoltl);
503-
//First 23-bits contain the aeoltl
504-
__u32 le_bytes = cpu_to_le32(aeoltl);
505-
fprintf(stderr, "AEOTL le: %d\n", le_bytes);
506-
507-
hdr->aeolli[0] = le_bytes & 0xFF;
508-
hdr->aeolli[1] = (le_bytes >> 8) & 0xFF;
509-
hdr->aeolli[2] = (hdr->aeolli[2] & 0b10000000) | ((le_bytes >> 16) & 0x7F);
502+
hdr->aeolli[0] = aeoltl & 0xFF;
503+
hdr->aeolli[1] = (aeoltl >> 8) & 0xFF;
504+
hdr->aeolli[2] = (hdr->aeolli[2] & 0b10000000) | ((aeoltl >> 16) & 0x7F);
510505
}
511506

512507

0 commit comments

Comments
 (0)