Hi Jonas, On 03/25/2017 11:57 AM, Jonas Bonn wrote: > This patch simplifies and cleans up the check_usb_device function a bit > by doing the two following (slightly intertwined) things: > > 1) The parent "usb_device" is searched for early in this function and this > device will always have the ID_VENDOR_ID and ID_MODEL_ID properties. > As such, we can get them from this device and thereby be certain that > we _always_ have them available. > > 2) The logic of iterating the vendor_list table is cleaned up. It's > easier to follow and won't be any less efficient. > --- > plugins/udevng.c | 37 ++++++++++++------------------------- > 1 file changed, 12 insertions(+), 25 deletions(-) > Applied, thanks. Regards, -Denis