diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-10-10 08:49:45 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 18:34:00 -0500 |
commit | 1cc373c654acde47d78da9cccb5732dab2cc584f (patch) | |
tree | e18d27050b7a82976aee81b251f3dac5dd710036 /drivers/usb/misc | |
parent | e50a322e517731de5d1f6f3aad0a73f3b506c5ea (diff) |
usb: yurex: fixed sparse warning of incorrect type
fixed sparse warning of
1) incorrect type (different address spaces)
2) incorrect type in initializer
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/yurex.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c index c3a45da11610..343fa6ff9f4b 100644 --- a/drivers/usb/misc/yurex.c +++ b/drivers/usb/misc/yurex.c | |||
@@ -410,7 +410,8 @@ static int yurex_release(struct inode *inode, struct file *file) | |||
410 | return 0; | 410 | return 0; |
411 | } | 411 | } |
412 | 412 | ||
413 | static ssize_t yurex_read(struct file *file, char *buffer, size_t count, loff_t *ppos) | 413 | static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count, |
414 | loff_t *ppos) | ||
414 | { | 415 | { |
415 | struct usb_yurex *dev; | 416 | struct usb_yurex *dev; |
416 | int retval = 0; | 417 | int retval = 0; |
@@ -444,7 +445,8 @@ exit: | |||
444 | return retval; | 445 | return retval; |
445 | } | 446 | } |
446 | 447 | ||
447 | static ssize_t yurex_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos) | 448 | static ssize_t yurex_write(struct file *file, const char __user *user_buffer, |
449 | size_t count, loff_t *ppos) | ||
448 | { | 450 | { |
449 | struct usb_yurex *dev; | 451 | struct usb_yurex *dev; |
450 | int i, set = 0, retval = 0; | 452 | int i, set = 0, retval = 0; |