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>
This commit is contained in:
@@ -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)
|
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] = {
|
const char *desc[MMC_ERR_MAX] = {
|
||||||
[MMC_ERR_CMD_TIMEOUT] = "Command Timeout Occurred",
|
[MMC_ERR_CMD_TIMEOUT] = "Command Timeout Occurred",
|
||||||
[MMC_ERR_CMD_CRC] = "Command CRC Errors Occurred",
|
[MMC_ERR_CMD_CRC] = "Command CRC Errors Occurred",
|
||||||
|
@@ -3045,7 +3045,7 @@ static LIST_HEAD(mmc_test_file_test);
|
|||||||
|
|
||||||
static int mtf_test_show(struct seq_file *sf, void *data)
|
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;
|
struct mmc_test_general_result *gr;
|
||||||
|
|
||||||
mutex_lock(&mmc_test_lock);
|
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,
|
static ssize_t mtf_test_write(struct file *file, const char __user *buf,
|
||||||
size_t count, loff_t *pos)
|
size_t count, loff_t *pos)
|
||||||
{
|
{
|
||||||
struct seq_file *sf = (struct seq_file *)file->private_data;
|
struct seq_file *sf = file->private_data;
|
||||||
struct mmc_card *card = (struct mmc_card *)sf->private;
|
struct mmc_card *card = sf->private;
|
||||||
struct mmc_test_card *test;
|
struct mmc_test_card *test;
|
||||||
long testcase;
|
long testcase;
|
||||||
int ret;
|
int ret;
|
||||||
|
Reference in New Issue
Block a user