SYSLOG device flush logic not meaningful if SYSLOG file channels not supported

This commit is contained in:
Gregory Nutt 2016-06-22 13:35:53 -06:00
parent 1774ff2ed9
commit 0cb137d021

View File

@ -578,7 +578,7 @@ int syslog_dev_flush(void)
{
int ret = 0;;
#ifndef CONFIG_DISABLE_MOUNTPOINT
#if defined(CONFIG_SYSLOG_FILE) && !defined(CONFIG_DISABLE_MOUNTPOINT)
FAR struct inode *inode = g_syslog_dev.sl_file.f_inode;
/* Is this a mountpoint? Does it support the sync method? */