* [PATCH] usbtmc: Use explicit unsigned type for input buffer instead of char*
@ 2008-10-25 21:07 Chris Malley
0 siblings, 0 replies; only message in thread
From: Chris Malley @ 2008-10-25 21:07 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel
From: Chris Malley <mail@chrismalley.co.uk>
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>
---
drivers/usb/class/usbtmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c
index 543811f..8e74657 100644
--- a/drivers/usb/class/usbtmc.c
+++ b/drivers/usb/class/usbtmc.c
@@ -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;
--
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-25 21:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-25 21:07 [PATCH] usbtmc: Use explicit unsigned type for input buffer instead of char* Chris Malley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).