drivers/block: Remove unnecessary cast
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.
Signed-off-by H Hartley Sweeten <[email protected]>
Cc Chirag Kantharia <[email protected]>
---
drivers/block/DAC960.c +3 -3
@@ -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
@@ -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;