remove the unused function

Signed-off-by: hans <hans.taeng@delta.com.tw>
This commit is contained in:
hans
2017-05-02 12:38:51 +08:00
parent 8232d13bb4
commit a4bc672c8f

View File

@@ -38,17 +38,6 @@
} \
} while(0)
#define OPEN_READ_FILE(fd,fullpath,data,nbytes,len) \
DEBUG_PRINT("[Debug][%s][%d][openfile: %s]\n", __FUNCTION__, __LINE__, fullpath); \
if ((fd = open(fullpath, O_RDONLY)) == -1) \
return ONLP_STATUS_E_INTERNAL; \
if ((len = read(fd, r_data, nbytes)) <= 0){ \
close(fd); \
return ONLP_STATUS_E_INTERNAL;} \
DEBUG_PRINT("[Debug][%s][%d][read data: %s]\n", __FUNCTION__, __LINE__, r_data); \
if (close(fd) == -1) \
return ONLP_STATUS_E_INTERNAL
static char* last_path[] = /* must map with onlp_thermal_id */
{
"reserved",