From: Meng Yu <yumeng18@huawei.com>
To: <axboe@kernel.dk>
Cc: <linux-block@vger.kernel.org>, <xuzaibo@huawei.com>,
<wangzhou1@hisilicon.com>, <yumeng18@huawei.com>,
<linux-kernel@vger.kernel.org>
Subject: [PATCH] umem: remove useless 'u64' in 'cpu_to_le64'
Date: Mon, 22 Mar 2021 09:59:00 +0800 [thread overview]
Message-ID: <1616378340-8354-1-git-send-email-yumeng18@huawei.com> (raw)
The 'u64' cast is redundant in 'cpu_to_le64' and coding style fix.
Signed-off-by: Meng Yu <yumeng18@huawei.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
reply other threads:[~2021-03-22 2:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1616378340-8354-1-git-send-email-yumeng18@huawei.com \
--to=yumeng18@huawei.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wangzhou1@hisilicon.com \
--cc=xuzaibo@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.