Re: [PATCH] usb: storage: initialize variable

2020-08-24 Thread Tom Rix
On 8/22/20 5:49 PM, Alan Stern wrote: > On Sat, Aug 22, 2020 at 02:18:39PM -0700, t...@redhat.com wrote: >> From: Tom Rix >> >> clang static analysis reports this representative problem >> >> transport.c:495:15: warning: Assigned value is garbage or >> undefined >> length_left -= parti

Re: [PATCH] usb: storage: initialize variable

2020-08-22 Thread Alan Stern
On Sat, Aug 22, 2020 at 02:18:39PM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis reports this representative problem > > transport.c:495:15: warning: Assigned value is garbage or > undefined > length_left -= partial; >^ ~~~ > partial i

[PATCH] usb: storage: initialize variable

2020-08-22 Thread trix
From: Tom Rix clang static analysis reports this representative problem transport.c:495:15: warning: Assigned value is garbage or undefined length_left -= partial; ^ ~~~ partial is set only when usb_stor_bulk_transfer_sglist() is successful. So initialize to pa