Skip to content

Commit

Permalink
[usb-moded] check for more return states so we do not error out when …
Browse files Browse the repository at this point in the history
…we shouldn't

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jan 27, 2014
1 parent 6ca7371 commit 1ee39d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usb_moded-modesetting.c
Expand Up @@ -404,7 +404,7 @@ int set_dynamic_mode(void)
/* set functionality first, then enable */
if(data->android_extra_sysfs_value && data->android_extra_sysfs_path)
{
write_to_file(data->android_extra_sysfs_path, data->android_extra_sysfs_value);
ret = write_to_file(data->android_extra_sysfs_path, data->android_extra_sysfs_value);
}
if(data->android_extra_sysfs_value2 && data->android_extra_sysfs_path2)
{
Expand All @@ -423,7 +423,7 @@ int set_dynamic_mode(void)
/* enable the device */
if(data->softconnect)
{
write_to_file(data->softconnect_path, data->softconnect);
ret = write_to_file(data->softconnect_path, data->softconnect);
}

/* functionality should be enabled, so we can enable the network now */
Expand Down

0 comments on commit 1ee39d8

Please sign in to comment.