mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 15:49:42 -04:00
Staging: comedi: Remove unnecessary cast on void pointer
void pointers do not need to be cast to other pointer types. The semantic patch used to find this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2512233334
commit
e4c0c6bc0c
@@ -2275,7 +2275,7 @@ static int pci230_ai_cancel(struct comedi_device *dev,
|
||||
static irqreturn_t pci230_interrupt(int irq, void *d)
|
||||
{
|
||||
unsigned char status_int, valid_status_int, temp_ier;
|
||||
struct comedi_device *dev = (struct comedi_device *)d;
|
||||
struct comedi_device *dev = d;
|
||||
struct pci230_private *devpriv = dev->private;
|
||||
struct comedi_subdevice *s_ao = dev->write_subdev;
|
||||
struct comedi_subdevice *s_ai = dev->read_subdev;
|
||||
|
||||
@@ -1234,7 +1234,7 @@ static void handle_ao_interrupt(struct comedi_device *dev, unsigned int status)
|
||||
|
||||
static irqreturn_t cb_pcidas_interrupt(int irq, void *d)
|
||||
{
|
||||
struct comedi_device *dev = (struct comedi_device *)d;
|
||||
struct comedi_device *dev = d;
|
||||
const struct cb_pcidas_board *board = dev->board_ptr;
|
||||
struct cb_pcidas_private *devpriv = dev->private;
|
||||
struct comedi_subdevice *s = dev->read_subdev;
|
||||
|
||||
Reference in New Issue
Block a user