Skip to contentSkip to conversation

drivers/block: Remove unnecessary cast

PATCH New H Hartley Sweeten 1 participant 1 message Jan 8, 2010 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/block: Remove unnecessary cast

drivers/block: Remove unnecessary cast.

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

---

drivers/block/DAC960.c +3 -3
index ce1fa92..bd85fb8 100644
@@ -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;
drivers/block/cpqarray.c +1 -1
index 6422651..9bcef1a 100644
@@ -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;