Seems better,but min_t also do the casting job.

Cliff
>-----Original Message-----
>From: [email protected] 
>[mailto:[email protected]] On 
>Behalf Of Mike Frysinger
>Sent: Thursday, October 29, 2009 5:23 PM
>To: [email protected]
>Cc: [email protected]
>Subject: Re: [Linux-kernel-commits] 
>[7725]trunk/drivers/usb/musb/musb_gadget.c: fix compiling warning
>
>On Thu, Oct 29, 2009 at 05:12,  <[email protected]> wrote:
>> Revision 7725 Author cliff Date 2009-10-29 05:12:14 -0400 
>(Thu, 29 Oct 
>> 2009)
>>
>> Log Message
>>
>> fix compiling warning
>>
>> Modified: trunk/drivers/usb/musb/musb_gadget.c (7724 => 7725)
>>
>> -                    request_size = min(request->length,
>> +                    request_size = min((size_t)request->length,
>>                                              musb_ep->dma->max_len);
>
>wouldnt min_t(<type>, ...) be better than casting arguments ?
>-mike
>_______________________________________________
>Linux-kernel-commits mailing list
>[email protected]
>https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
>
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to