Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208014
b: refs/heads/master
c: e53e841
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 90f5f3f commit a5e8ba6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 925ce689bb31960c839804c19ef38d676f1939b9
refs/heads/master: e53e841d451a2d0da094b8fea4a7f22b296234f6
8 changes: 4 additions & 4 deletions trunk/drivers/usb/usb-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int skel_release(struct inode *inode, struct file *file)
{
struct usb_skel *dev;

dev = (struct usb_skel *)file->private_data;
dev = file->private_data;
if (dev == NULL)
return -ENODEV;

Expand All @@ -162,7 +162,7 @@ static int skel_flush(struct file *file, fl_owner_t id)
struct usb_skel *dev;
int res;

dev = (struct usb_skel *)file->private_data;
dev = file->private_data;
if (dev == NULL)
return -ENODEV;

Expand Down Expand Up @@ -246,7 +246,7 @@ static ssize_t skel_read(struct file *file, char *buffer, size_t count,
int rv;
bool ongoing_io;

dev = (struct usb_skel *)file->private_data;
dev = file->private_data;

/* if we cannot read at all, return EOF */
if (!dev->bulk_in_urb || !count)
Expand Down Expand Up @@ -401,7 +401,7 @@ static ssize_t skel_write(struct file *file, const char *user_buffer,
char *buf = NULL;
size_t writesize = min(count, (size_t)MAX_TRANSFER);

dev = (struct usb_skel *)file->private_data;
dev = file->private_data;

/* verify that we actually have some data to write */
if (count == 0)
Expand Down

0 comments on commit a5e8ba6

Please sign in to comment.