Re: [patch] clean up. remove unneeded null checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Carpenter wrote:
> td and dev can not be null.  
> 
> Also they are dereferenced in list_for_each_entry_safe and 
> list_for_each before the check happens so we would have an oops if it were 
> possible for them to be null.
> 
> Found using the smatch static checker.

Thank you very much for your patch.
I tested this patch.

Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@xxxxxxxxxxx>

Thanks,
Yoshihro Shimoda

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux