[PATCH] usb/storage/initializers.c: fix signedness difference

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <gregkh@...>
Cc: <linux-kernel@...>
Date: Sunday, December 9, 2007 - 5:23 pm

usb/storage/initializers.c: fix signedness difference

Signed-off-by: Marcin Ślusarz <marcin.slusarz@gmail.com>
---
 drivers/usb/storage/initializers.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/storage/initializers.c b/drivers/usb/storage/initializers.c
index ee5b42a..187dd1e 100644
--- a/drivers/usb/storage/initializers.c
+++ b/drivers/usb/storage/initializers.c
@@ -66,7 +66,8 @@ int usb_stor_ucr61s2b_init(struct us_data *us)
 {
 	struct bulk_cb_wrap *bcb = (struct bulk_cb_wrap*) us->iobuf;
 	struct bulk_cs_wrap *bcs = (struct bulk_cs_wrap*) us->iobuf;
-	int res, partial;
+	int res;
+	unsigned int partial;
 	static char init_string[] = "\xec\x0a\x06\x00$PCCHIPS";

 	US_DEBUGP("Sending UCR-61S2B initialization packet...\n");
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] usb/storage/initializers.c: fix signedness difference, Marcin , (Sun Dec 9, 5:23 pm)