summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 21:16:04 -0700
committerDavid S. Miller <davem@davemloft.net>2010-07-12 21:16:04 -0700
commit33cfe65a786cf3d048688b932f41df937282a7bb (patch)
tree2ef48f4b6fdc47c2119661d92f6a41698acabf3e
parentf5fa3cb9b790db1c401f4b506d7fcc503771af0d (diff)
downloadop-kernel-dev-33cfe65a786cf3d048688b932f41df937282a7bb.zip
op-kernel-dev-33cfe65a786cf3d048688b932f41df937282a7bb.tar.gz
drivers/sbus: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/sbus/char/openprom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/openprom.c b/drivers/sbus/char/openprom.c
index d53e62a..aacbe14 100644
--- a/drivers/sbus/char/openprom.c
+++ b/drivers/sbus/char/openprom.c
@@ -554,7 +554,7 @@ static int opiocgetnext(unsigned int cmd, void __user *argp)
static int openprom_bsd_ioctl(struct file * file,
unsigned int cmd, unsigned long arg)
{
- DATA *data = (DATA *) file->private_data;
+ DATA *data = file->private_data;
void __user *argp = (void __user *)arg;
int err;
@@ -601,7 +601,7 @@ static int openprom_bsd_ioctl(struct file * file,
static long openprom_ioctl(struct file * file,
unsigned int cmd, unsigned long arg)
{
- DATA *data = (DATA *) file->private_data;
+ DATA *data = file->private_data;
switch (cmd) {
case OPROMGETOPT:
OpenPOWER on IntegriCloud