Skip to content

Commit 77e9869

Browse files
authored
Update rrdInterface.c
1 parent e11e266 commit 77e9869

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/rrdInterface.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -634,13 +634,7 @@ char* read_profile_json_file(const char* filename, long* file_size)
634634
return NULL;
635635
}
636636

637-
FILE *fp = fopen(filename, "rb");
638-
if (!fp) {
639-
RDK_LOG(RDK_LOG_ERROR, LOG_REMDEBUG, "[%s:%d]: Unable to read profile file from %s\n",
640-
__FUNCTION__, __LINE__, filename ? filename : "(null)");
641-
return NULL;
642-
}
643-
637+
FILE *fp = fopen(filename, "rb");
644638
fseek(fp, 0L, SEEK_END);
645639
long fileSz = ftell(fp);
646640
rewind(fp);

0 commit comments

Comments
 (0)