aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 13:50:11 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 14:35:39 -0700
commitfd63b10ba33f272308d9f976a40f2cd064d8b21b (patch)
treec9c542c37611c08291fe0e610a1ac2e68d03fc4c /drivers/usb/gadget
parent5bd6e8b3fb787b7337b681aaa601e5c7bdc67c55 (diff)
downloadkernel_samsung_crespo-fd63b10ba33f272308d9f976a40f2cd064d8b21b.zip
kernel_samsung_crespo-fd63b10ba33f272308d9f976a40f2cd064d8b21b.tar.gz
kernel_samsung_crespo-fd63b10ba33f272308d9f976a40f2cd064d8b21b.tar.bz2
USB: gadget: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/f_hid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/f_hid.c b/drivers/usb/gadget/f_hid.c
index 1e00ff9..53e1202 100644
--- a/drivers/usb/gadget/f_hid.c
+++ b/drivers/usb/gadget/f_hid.c
@@ -142,7 +142,7 @@ static struct usb_descriptor_header *hidg_fs_descriptors[] = {
static ssize_t f_hidg_read(struct file *file, char __user *buffer,
size_t count, loff_t *ptr)
{
- struct f_hidg *hidg = (struct f_hidg *)file->private_data;
+ struct f_hidg *hidg = file->private_data;
char *tmp_buff = NULL;
unsigned long flags;
@@ -200,7 +200,7 @@ static void f_hidg_req_complete(struct usb_ep *ep, struct usb_request *req)
static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
size_t count, loff_t *offp)
{
- struct f_hidg *hidg = (struct f_hidg *)file->private_data;
+ struct f_hidg *hidg = file->private_data;
ssize_t status = -ENOMEM;
if (!access_ok(VERIFY_READ, buffer, count))
@@ -257,7 +257,7 @@ static ssize_t f_hidg_write(struct file *file, const char __user *buffer,
static unsigned int f_hidg_poll(struct file *file, poll_table *wait)
{
- struct f_hidg *hidg = (struct f_hidg *)file->private_data;
+ struct f_hidg *hidg = file->private_data;
unsigned int ret = 0;
poll_wait(file, &hidg->read_queue, wait);