Skip to content

Commit

Permalink
technology: Return error if no devices can be found for a technology
Browse files Browse the repository at this point in the history
Instead of returning 0 (Success) when there are no devices for a given
technology, return ENXIO so that caller can inform user about the
issue.
  • Loading branch information
jukkar authored and Daniel Wagner committed Jul 22, 2013
1 parent 339f05f commit ad79c1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/technology.c
Expand Up @@ -700,7 +700,7 @@ static int technology_affect_devices(struct connman_technology *technology,
connman_bool_t enable_device)
{
GSList *list;
int err = 0;
int err = -ENXIO;

for (list = technology->device_list; list; list = list->next) {
struct connman_device *device = list->data;
Expand Down

0 comments on commit ad79c1a

Please sign in to comment.