On Mon, Jan 22, 2024 at 09:26:51PM +0300, Sergey Shtylyov wrote: > On 12/7/23 7:16 PM, Sergey Shtylyov wrote: > > [...] > >>> In init_freecom(), the results of usb_stor_control_msg() calls are stored > >>> in the local variable and then printed out by usb_stor_dbg() (if enabled), > >>> except for the 1st call, the result of which is completely ignored. Drop > >>> the useless assignment. > >> > >> Instead, you should check the return value and handle it properly, don't > >> just drop the checking entirely, that's not good. > > > > Hmm... I wonder if you'd actually read the patch... > > I'm not dropping any checking because there's none, even at the further > > call sites of usb_stor_control_msg() -- the most init_freecom() currently > > is doing is printing out the result of the calls... > > Alan, haven't heard your opinion on this patch... What do you think? Oh, sorry about that. There's nothing wrong with the patch. None of the return values in that function are used for anything other than debug log messages. (It's a little surprising that the original author of this driver didn't put any error checking here.) Greg, feel free to merge the patch. Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> Alan Stern