wcmForeachDevice returns 0 for no matches, a negative errno or the greater-than-zero number of matches. In wcmMatchDevice we return either 0 or 1 as matchDevice() stops the foreach once the first match is encountered.
Fixes: d5ca999f35c7 ("Add a helper function to iterate over local devices to the driver layer") Closes #342
wcmForeachDevice returns 0 for no matches, a negative errno or the greater-than-zero number of matches. In wcmMatchDevice we return either 0 or 1 as matchDevice() stops the foreach once the first match is encountered.
Fixes: d5ca999f35c7 ("Add a helper function to iterate over local devices to the driver layer") Closes #342
cc @omcaif