lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230413111511.15579-1-liqiong@nfschina.com>
Date:   Thu, 13 Apr 2023 19:15:11 +0800
From:   Li Qiong <liqiong@...china.com>
To:     "James E . J . Bottomley" <jejb@...ux.ibm.com>,
        "Martin K . Petersen" <martin.petersen@...cle.com>,
        Karan Tilak Kumar <kartilak@...co.com>,
        Sesidhar Baddela <sebaddel@...co.com>
Cc:     linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
        Li Qiong <liqiong@...china.com>
Subject: [PATCH 4/4] scsi: snic: Remove unnecessary (void*) conversions

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

Signed-off-by: Li Qiong <liqiong@...china.com>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ