clang readability-braces-around-statements (#6298)

This commit is contained in:
Daniel Agar
2017-01-11 17:01:51 -05:00
committed by GitHub
parent 48c5ec54bb
commit 751909cd4e
3 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -453,10 +453,11 @@ _file_write(dm_item_t item, unsigned char index, dm_persitence_t persistence, co
len = -1;
/* Seek to the right spot in the data manager file and write the data item */
if (lseek(g_task_fd, offset, SEEK_SET) == offset)
if (lseek(g_task_fd, offset, SEEK_SET) == offset) {
if ((len = write(g_task_fd, buffer, count)) == count) {
fsync(g_task_fd); /* Make sure data is written to physical media */
}
}
/* Make sure the write succeeded */
if (len != count) {