2010-06-29 10:15:47

by Kulikov Vasiliy

[permalink] [raw]
Subject: [PATCH 12/25] quatech_daqp_cs: remove casts from void*

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <[email protected]>
---
drivers/staging/comedi/drivers/quatech_daqp_cs.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
index a91db6c..b38b107 100644
--- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c
+++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
@@ -221,7 +221,7 @@ static void hex_dump(char *str, void *ptr, int len)

static int daqp_ai_cancel(struct comedi_device *dev, struct comedi_subdevice *s)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;

if (local->stop) {
return -EIO;
@@ -279,7 +279,7 @@ static enum irqreturn daqp_interrupt(int irq, void *dev_id)
return IRQ_NONE;
}

- if ((struct local_info_t *)s->private != local) {
+ if (s->private != local) {
printk(KERN_WARNING
"daqp_interrupt(): invalid comedi_subdevice.\n");
return IRQ_NONE;
@@ -350,7 +350,7 @@ static int daqp_ai_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
int i;
int v;
int counter = 10000;
@@ -579,7 +579,7 @@ static int daqp_ai_cmdtest(struct comedi_device *dev,

static int daqp_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
struct comedi_cmd *cmd = &s->async->cmd;
int counter;
int scanlist_start_on_every_entry;
@@ -781,7 +781,7 @@ static int daqp_ao_insn_write(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;
int d;
unsigned int chan;

@@ -809,7 +809,7 @@ static int daqp_di_insn_read(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;

if (local->stop) {
return -EIO;
@@ -826,7 +826,7 @@ static int daqp_do_insn_write(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
- struct local_info_t *local = (struct local_info_t *)s->private;
+ struct local_info_t *local = s->private;

if (local->stop) {
return -EIO;
--
1.7.0.4