* [PATCH 03/25] snsc: remove casts from void*
@ 2010-06-29 10:15 Kulikov Vasiliy
0 siblings, 0 replies; only message in thread
From: Kulikov Vasiliy @ 2010-06-29 10:15 UTC (permalink / raw)
To: Kernel Janitors; +Cc: linux-kernel
Remove unnesessary casts from void*.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
---
drivers/char/snsc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/char/snsc.c b/drivers/char/snsc.c
index 32b74de..ae6aa91 100644
--- a/drivers/char/snsc.c
+++ b/drivers/char/snsc.c
@@ -129,7 +129,7 @@ scdrv_open(struct inode *inode, struct file *file)
static int
scdrv_release(struct inode *inode, struct file *file)
{
- struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
+ struct subch_data_s *sd = file->private_data;
int rv;
/* free the interrupt */
@@ -161,7 +161,7 @@ scdrv_read(struct file *file, char __user *buf, size_t count, loff_t *f_pos)
int status;
int len;
unsigned long flags;
- struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
+ struct subch_data_s *sd = file->private_data;
/* try to get control of the read buffer */
if (down_trylock(&sd->sd_rbs)) {
@@ -253,7 +253,7 @@ scdrv_write(struct file *file, const char __user *buf,
{
unsigned long flags;
int status;
- struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
+ struct subch_data_s *sd = file->private_data;
/* try to get control of the write buffer */
if (down_trylock(&sd->sd_wbs)) {
@@ -326,7 +326,7 @@ scdrv_poll(struct file *file, struct poll_table_struct *wait)
{
unsigned int mask = 0;
int status = 0;
- struct subch_data_s *sd = (struct subch_data_s *) file->private_data;
+ struct subch_data_s *sd = file->private_data;
unsigned long flags;
poll_wait(file, &sd->sd_rq, wait);
--
1.7.0.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-29 10:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-29 10:15 [PATCH 03/25] snsc: remove casts from void* Kulikov Vasiliy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome