2023-04-13 11:27:27

by Li Qiong

[permalink] [raw]
Subject: [PATCH 4/4] scsi: snic: Remove unnecessary (void*) conversions

No need to cast (void*) pointer to other type.

Signed-off-by: Li Qiong <[email protected]>
---
drivers/scsi/snic/snic_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/snic/snic_debugfs.c b/drivers/scsi/snic/snic_debugfs.c
index 9dd975b36b5b..06de583caed1 100644
--- a/drivers/scsi/snic/snic_debugfs.c
+++ b/drivers/scsi/snic/snic_debugfs.c
@@ -164,7 +164,7 @@ snic_reset_stats_release(struct inode *inode, struct file *filp)
static int
snic_stats_show(struct seq_file *sfp, void *data)
{
- struct snic *snic = (struct snic *) sfp->private;
+ struct snic *snic = sfp->private;
struct snic_stats *stats = &snic->s_stats;
struct timespec64 last_isr_tms, last_ack_tms;
u64 maxio_tm;
--
2.11.0