From 35b2426170e62ae4bce821b63f0b232b4b9828cd Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Wed, 23 Mar 2016 10:50:03 +0000 Subject: [PATCH] mraa.c: allow imraa lock file to be read if platform is unknown Signed-off-by: Brendan Le Foll --- src/mraa.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mraa.c b/src/mraa.c index fcf9bde..a2a662a 100644 --- a/src/mraa.c +++ b/src/mraa.c @@ -991,10 +991,6 @@ mraa_add_subplatform(mraa_platform_t subplatformtype, const char* uart_dev) uint32_t mraa_add_from_lockfile(const char* imraa_lock_file) { mraa_platform_t type = plat->platform_type; - if( type== MRAA_NULL_PLATFORM || type == MRAA_UNKNOWN_PLATFORM) { - syslog(LOG_ERR, "imraa: Failed to add subplatform on null/unkown platform"); - return -1; - } char* buffer = NULL; long fsize; int i = 0;