ref: 2d734d7ea8c9501e296bcd13cbecbf22396e5d5e
parent: eddcd695d0c06c5e2dbef7c23c4998405857df59
author: gkostka <kostka.grzegorz@gmail.com>
date: Sat Jun 27 19:55:25 EDT 2015
Code fortmat with new clang formater (3.7)
--- a/.clang-format
+++ b/.clang-format
@@ -1,6 +1,8 @@
+#clang-format-3.7 -style=file -i lwext4/*
+
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
-BreakBeforeBraces: Stroustrup
+BreakBeforeBraces: Linux
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -49,8 +49,6 @@
#include <stdlib.h>
#include <string.h>
-
-
/**@brief Mount point OS dependent lock*/
#define EXT4_MP_LOCK(_m) \
do { \
--- a/lwext4/ext4_fs.c
+++ b/lwext4/ext4_fs.c
@@ -633,7 +633,6 @@
mode |= EXT4_INODE_MODE_DIRECTORY;
ext4_inode_set_mode(&fs->sb, inode, mode);
ext4_inode_set_links_count(inode, 0);
-
} else {
/*
* Default file permissions to be compatible with other systems
@@ -861,7 +860,6 @@
inode_ref, old_blocks_count - diff_blocks_count);
if (rc != EOK)
return rc;
-
} else
#endif
{
--- a/lwext4/ext4_hash.c
+++ b/lwext4/ext4_hash.c
@@ -67,7 +67,6 @@
#include <string.h>
-
/* F, G, and H are MD4 functions */
#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
#define G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z)))