USB: message: cleanup min_t() cast in usb_sg_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Sep 2011 06:25:19 +0000 (09:25 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 29 Sep 2011 20:13:07 +0000 (13:13 -0700)
commitedb2b255a0bebac5aeb17c7613aeb76ba4e6c63c
treedf71c2cee60c81b9642da8b89ccae63763b0cc30
parent1bfac90d1b8e63a4d44158c3445d8fda3fb6d5eb
USB: message: cleanup min_t() cast in usb_sg_init()

"length" is type size_t so the cast to unsigned int truncates the
upper bytes.  This isn't an issue in real life (I've checked the
callers) but it's a bit messy.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c