ref: 8871ae25e916422de5687974adf44465fb5343e4
parent: cd04f3c3b474248f93f005c1e4d0325ce6202fe6
author: gkostka <kostka.grzegorz@gmail.com>
date: Sun Jun 22 19:19:57 EDT 2014
Removed warnings when debug mode is disabled
--- a/lwext4/ext4_dir.c
+++ b/lwext4/ext4_dir.c
@@ -270,8 +270,7 @@
struct ext4_inode_ref *child, const char *name, size_t name_len)
{
/* Check maximum entry length */
- uint32_t block_size = ext4_sb_get_block_size(sb);
- ext4_assert(entry_len <= block_size);
+ ext4_assert(entry_len <= ext4_sb_get_block_size(sb));
/* Set basic attributes */
ext4_dir_entry_ll_set_inode(entry, child->index);