Skip to content

Commit 5762451

Browse files
yuzhenfschinaUlf Hansson
authored andcommitted
mmc: core: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe <yuzhe@nfschina.com> Link: https://lore.kernel.org/r/20230328031049.22749-1-yuzhe@nfschina.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 4fddc64 commit 5762451

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/mmc/core/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(mmc_err_state, mmc_err_state_get, NULL, "%llu\n");
246246

247247
static int mmc_err_stats_show(struct seq_file *file, void *data)
248248
{
249-
struct mmc_host *host = (struct mmc_host *)file->private;
249+
struct mmc_host *host = file->private;
250250
const char *desc[MMC_ERR_MAX] = {
251251
[MMC_ERR_CMD_TIMEOUT] = "Command Timeout Occurred",
252252
[MMC_ERR_CMD_CRC] = "Command CRC Errors Occurred",

drivers/mmc/core/mmc_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,7 @@ static LIST_HEAD(mmc_test_file_test);
30453045

30463046
static int mtf_test_show(struct seq_file *sf, void *data)
30473047
{
3048-
struct mmc_card *card = (struct mmc_card *)sf->private;
3048+
struct mmc_card *card = sf->private;
30493049
struct mmc_test_general_result *gr;
30503050

30513051
mutex_lock(&mmc_test_lock);
@@ -3079,8 +3079,8 @@ static int mtf_test_open(struct inode *inode, struct file *file)
30793079
static ssize_t mtf_test_write(struct file *file, const char __user *buf,
30803080
size_t count, loff_t *pos)
30813081
{
3082-
struct seq_file *sf = (struct seq_file *)file->private_data;
3083-
struct mmc_card *card = (struct mmc_card *)sf->private;
3082+
struct seq_file *sf = file->private_data;
3083+
struct mmc_card *card = sf->private;
30843084
struct mmc_test_card *test;
30853085
long testcase;
30863086
int ret;

0 commit comments

Comments
 (0)