Skip to content

Commit

Permalink
USB: usbtmc: Use explicit unsigned type for input buffer instead of c…
Browse files Browse the repository at this point in the history
…har*

Silences compiler warning about comparison with 0x80, and type now matches the
corresponding _bulk_out function.

drivers/usb/class/usbtmc.c: In function ‘usbtmc_ioctl_abort_bulk_in’:
drivers/usb/class/usbtmc.c:163: warning: comparison is always false due to limited range of data type

Signed-off-by: Chris Malley <mail@chrismalley.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Chris Malley authored and Greg Kroah-Hartman committed Oct 29, 2008
1 parent cde217a commit b361a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/class/usbtmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static int usbtmc_release(struct inode *inode, struct file *file)

static int usbtmc_ioctl_abort_bulk_in(struct usbtmc_device_data *data)
{
char *buffer;
u8 *buffer;
struct device *dev;
int rv;
int n;
Expand Down

0 comments on commit b361a6e

Please sign in to comment.