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>
This commit is contained in:
committed by
David S. Miller
parent
f5fa3cb9b7
commit
33cfe65a78
@@ -554,7 +554,7 @@ static int opiocgetnext(unsigned int cmd, void __user *argp)
|
|||||||
static int openprom_bsd_ioctl(struct file * file,
|
static int openprom_bsd_ioctl(struct file * file,
|
||||||
unsigned int cmd, unsigned long arg)
|
unsigned int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
DATA *data = (DATA *) file->private_data;
|
DATA *data = file->private_data;
|
||||||
void __user *argp = (void __user *)arg;
|
void __user *argp = (void __user *)arg;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
@@ -601,7 +601,7 @@ static int openprom_bsd_ioctl(struct file * file,
|
|||||||
static long openprom_ioctl(struct file * file,
|
static long openprom_ioctl(struct file * file,
|
||||||
unsigned int cmd, unsigned long arg)
|
unsigned int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
DATA *data = (DATA *) file->private_data;
|
DATA *data = file->private_data;
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case OPROMGETOPT:
|
case OPROMGETOPT:
|
||||||
|
Reference in New Issue
Block a user