Eliminate a warning

This commit is contained in:
Gregory Nutt 2016-06-19 13:56:49 -06:00
parent e480b385e6
commit b68822805f

View File

@ -515,7 +515,7 @@ errout_with_errcode:
int syslog_dev_flush(void)
{
int ret;
int ret = 0;;
#ifndef CONFIG_DISABLE_MOUNTPOINT
FAR struct inode *inode = g_syslog_dev.sl_file.f_inode;
@ -529,10 +529,6 @@ int syslog_dev_flush(void)
ret = inode->u.i_mops->sync(&g_syslog_dev.sl_file);
}
#else
ret = 0;
#endif
return ret;