lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1616378340-8354-1-git-send-email-yumeng18@huawei.com>
Date:   Mon, 22 Mar 2021 09:59:00 +0800
From:   Meng Yu <yumeng18@...wei.com>
To:     <axboe@...nel.dk>
CC:     <linux-block@...r.kernel.org>, <xuzaibo@...wei.com>,
        <wangzhou1@...ilicon.com>, <yumeng18@...wei.com>,
        <linux-kernel@...r.kernel.org>
Subject: [PATCH] umem: remove useless 'u64' in 'cpu_to_le64'

The 'u64' cast is redundant in 'cpu_to_le64' and coding style fix.

Signed-off-by: Meng Yu <yumeng18@...wei.com>
---
 drivers/block/umem.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/block/umem.c b/drivers/block/umem.c
index 982732db..3b21b98 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -380,14 +380,14 @@ static int add_bio(struct cardinfo *card)
 
 	desc->data_dma_handle = dma_handle;
 
-	desc->pci_addr = cpu_to_le64((u64)desc->data_dma_handle);
+	desc->pci_addr = cpu_to_le64(desc->data_dma_handle);
 	desc->local_addr = cpu_to_le64(card->current_iter.bi_sector << 9);
 	desc->transfer_size = cpu_to_le32(vec.bv_len);
 	offset = (((char *)&desc->sem_control_bits) - ((char *)p->desc));
-	desc->sem_addr = cpu_to_le64((u64)(p->page_dma+offset));
+	desc->sem_addr = cpu_to_le64(p->page_dma + offset);
 	desc->zero1 = desc->zero2 = 0;
 	offset = (((char *)(desc+1)) - ((char *)p->desc));
-	desc->next_desc_addr = cpu_to_le64(p->page_dma+offset);
+	desc->next_desc_addr = cpu_to_le64(p->page_dma + offset);
 	desc->control_bits = cpu_to_le32(DMASCR_GO|DMASCR_ERR_INT_EN|
 					 DMASCR_PARITY_INT_EN|
 					 DMASCR_CHAIN_EN |
-- 
2.8.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ