resolved conflicts for merge of 038b76c2 to mnc-dev-plus-aosp

Change-Id: Id84946b67f207a7586cfa9c918ee6e4ae335fe86
diff --git a/libcutils/fs_config.c b/libcutils/fs_config.c
index 08df9de..171d0f7 100644
--- a/libcutils/fs_config.c
+++ b/libcutils/fs_config.c
@@ -167,8 +167,7 @@
         if (target_out_path[target_out_path_len] == '/') {
             skip_len++;
         }
-        asprintf(&name, "%s%s", target_out_path, (dir ? conf_dir : conf_file) + skip_len);
-        if (name) {
+        if (asprintf(&name, "%s%s", target_out_path, (dir ? conf_dir : conf_file) + skip_len) != -1) {
             fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_BINARY));
             free(name);
         }