mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: H Hartley Sweeten <hartleys@visionengravers.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>, iss_storagedev@hp.com
Cc: chirag.kantharia@hp.com
Subject: [PATCH] drivers/block: Remove unnecessary cast
Date: Fri, 8 Jan 2010 11:22:33 -0700	[thread overview]
Message-ID: <201001081122.33749.hartleys@visionengravers.com> (raw)

drivers/block: Remove unnecessary cast.

The struct seq_file 'private' member is a void *, the cast is not needed.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Chirag Kantharia <chirag.kantharia@hp.com>

---

diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c
index ce1fa92..bd85fb8 100644
--- a/drivers/block/DAC960.c
+++ b/drivers/block/DAC960.c
@@ -6458,7 +6458,7 @@ static const struct file_operations dac960_proc_fops = {
 
 static int dac960_initial_status_proc_show(struct seq_file *m, void *v)
 {
-	DAC960_Controller_T *Controller = (DAC960_Controller_T *)m->private;
+	DAC960_Controller_T *Controller = m->private;
 	seq_printf(m, "%.*s", Controller->InitialStatusLength, Controller->CombinedStatusBuffer);
 	return 0;
 }
@@ -6478,7 +6478,7 @@ static const struct file_operations dac960_initial_status_proc_fops = {
 
 static int dac960_current_status_proc_show(struct seq_file *m, void *v)
 {
-  DAC960_Controller_T *Controller = (DAC960_Controller_T *) m->private;
+  DAC960_Controller_T *Controller = m->private;
   unsigned char *StatusMessage =
     "No Rebuild or Consistency Check in Progress\n";
   int ProgressMessageLength = strlen(StatusMessage);
@@ -6524,7 +6524,7 @@ static const struct file_operations dac960_current_status_proc_fops = {
 
 static int dac960_user_command_proc_show(struct seq_file *m, void *v)
 {
-	DAC960_Controller_T *Controller = (DAC960_Controller_T *)m->private;
+	DAC960_Controller_T *Controller = m->private;
 
 	seq_printf(m, "%.*s", Controller->UserStatusLength, Controller->UserStatusBuffer);
 	return 0;
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c
index 6422651..9bcef1a 100644
--- a/drivers/block/cpqarray.c
+++ b/drivers/block/cpqarray.c
@@ -228,7 +228,7 @@ static void __init ida_procinit(int i)
 static int ida_proc_show(struct seq_file *m, void *v)
 {
 	int i, ctlr;
-	ctlr_info_t *h = (ctlr_info_t*)m->private;
+	ctlr_info_t *h = m->private;
 	drv_info_t *drv;
 #ifdef CPQ_PROC_PRINT_QUEUES
 	cmdlist_t *c;

                 reply	other threads:[~2010-01-08 18:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201001081122.33749.hartleys@visionengravers.com \
    --to=hartleys@visionengravers.com \
    --cc=chirag.kantharia@hp.com \
    --cc=iss_storagedev@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome