From: Yu Zhe <yuzhe@nfschina.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: adrian.hunter@intel.com, quic_sayalil@quicinc.com,
quic_luliang@quicinc.com, m.szyprowski@samsung.com,
wsa+renesas@sang-engineering.com, yebin10@huawei.com,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org, liqiong@nfschina.com
Subject: Re: [PATCH v2] mmc: core: remove unnecessary (void*) conversions
Date: Mon, 3 Apr 2023 19:47:17 +0800 [thread overview]
Message-ID: <03265187-6336-9b1f-ea0d-ecbc3c8546f2@nfschina.com> (raw)
In-Reply-To: <CAPDyKFrVuQwLfQZKx9x3PNKTYctWi7=e=vnUsdJgJLJ6=1o2iA@mail.gmail.com>
> On Tue, 28 Mar 2023 at 05:11, Yu Zhe <yuzhe@nfschina.com> wrote:
>> Pointer variables of void * type do not require type cast.
>>
>> Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
>> Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
> Did Marek give his reviewed-by tag offlist? I couldn't find his reply,
> just to make sure this is correct?
>
> Kind regards
> Uffe
Sorry, it may be a misuse of "reviewed-by" tag, "Marek Szyprowski" gave the error
report at the previous patch, so, i put the name at reviewed-by tag.
>
>> ---
>> drivers/mmc/core/debugfs.c | 2 +-
>> drivers/mmc/core/mmc_test.c | 6 +++---
>> 2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c
>> index fe6808771bc7..2c97b94aab23 100644
>> --- a/drivers/mmc/core/debugfs.c
>> +++ b/drivers/mmc/core/debugfs.c
>> @@ -246,7 +246,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(mmc_err_state, mmc_err_state_get, NULL, "%llu\n");
>>
>> static int mmc_err_stats_show(struct seq_file *file, void *data)
>> {
>> - struct mmc_host *host = (struct mmc_host *)file->private;
>> + struct mmc_host *host = file->private;
>> const char *desc[MMC_ERR_MAX] = {
>> [MMC_ERR_CMD_TIMEOUT] = "Command Timeout Occurred",
>> [MMC_ERR_CMD_CRC] = "Command CRC Errors Occurred",
>> diff --git a/drivers/mmc/core/mmc_test.c b/drivers/mmc/core/mmc_test.c
>> index 156d34b2ed4d..0f6a563103fd 100644
>> --- a/drivers/mmc/core/mmc_test.c
>> +++ b/drivers/mmc/core/mmc_test.c
>> @@ -3045,7 +3045,7 @@ static LIST_HEAD(mmc_test_file_test);
>>
>> static int mtf_test_show(struct seq_file *sf, void *data)
>> {
>> - struct mmc_card *card = (struct mmc_card *)sf->private;
>> + struct mmc_card *card = sf->private;
>> struct mmc_test_general_result *gr;
>>
>> mutex_lock(&mmc_test_lock);
>> @@ -3079,8 +3079,8 @@ static int mtf_test_open(struct inode *inode, struct file *file)
>> static ssize_t mtf_test_write(struct file *file, const char __user *buf,
>> size_t count, loff_t *pos)
>> {
>> - struct seq_file *sf = (struct seq_file *)file->private_data;
>> - struct mmc_card *card = (struct mmc_card *)sf->private;
>> + struct seq_file *sf = file->private_data;
>> + struct mmc_card *card = sf->private;
>> struct mmc_test_card *test;
>> long testcase;
>> int ret;
>> --
>> 2.11.0
>>
next prev parent reply other threads:[~2023-04-03 12:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 6:47 [PATCH] " Yu Zhe
2023-03-23 12:13 ` Ulf Hansson
[not found] ` <CGME20230324132858eucas1p25cdd6af81a14bf40474f58fa16d087f5@eucas1p2.samsung.com>
2023-03-24 13:28 ` Marek Szyprowski
2023-03-24 15:46 ` Ulf Hansson
2023-03-24 16:39 ` Dan Carpenter
2023-03-27 10:26 ` Ulf Hansson
2023-03-28 3:10 ` [PATCH v2] " Yu Zhe
2023-04-03 11:24 ` Ulf Hansson
2023-04-03 11:47 ` Yu Zhe [this message]
2023-04-03 12:35 ` Ulf Hansson
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=03265187-6336-9b1f-ea0d-ecbc3c8546f2@nfschina.com \
--to=yuzhe@nfschina.com \
--cc=adrian.hunter@intel.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=liqiong@nfschina.com \
--cc=m.szyprowski@samsung.com \
--cc=quic_luliang@quicinc.com \
--cc=quic_sayalil@quicinc.com \
--cc=ulf.hansson@linaro.org \
--cc=wsa+renesas@sang-engineering.com \
--cc=yebin10@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®