Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
if (stat(IIO_CONFIGFS_TRIGGER, &configfs_status) == 0) {
memset(buf, 0, MAX_SIZE);
snprintf(buf, MAX_SIZE, IIO_CONFIGFS_TRIGGER "%s", trigger);
if (stat(IIO_CONFIGFS_TRIGGER, &configfs_status) == 0) {
memset(buf, 0, MAX_SIZE);
snprintf(buf, MAX_SIZE, IIO_CONFIGFS_TRIGGER "%s", trigger);
- // we actually don't care if this doesn't succeed, as it just means
- // it's already been initialised
- mkdir(buf, configfs_status.st_mode);
+ // we actually don't care if this doesn't succeed, as it just means
+ // it's already been initialised
+ mkdir(buf, configfs_status.st_mode);
}
return MRAA_ERROR_UNSPECIFIED;
}
return MRAA_ERROR_UNSPECIFIED;