[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1277806541-31112-1-git-send-email-segooon@gmail.com>
Date: Tue, 29 Jun 2010 14:15:39 +0400
From: Kulikov Vasiliy <segooon@...il.com>
To: Kernel Janitors <kernel-janitors@...r.kernel.org>
Cc: Greg Kroah-Hartman <gregkh@...e.de>,
Dominik Brodowski <linux@...inikbrodowski.net>,
Alexander Kurz <linux@...babel.org>,
Jiri Kosina <jkosina@...e.cz>,
Javier Martinez Canillas <martinez.javier@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH 12/25] quatech_daqp_cs: remove casts from void*
Remove unnesessary casts from void*.
Signed-off-by: Kulikov Vasiliy <segooon@...il.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists