Re: [U-Boot] [PATCH v2 5/5] ext4: optimize direntlen loops

2016-08-28 Thread Stefan Bruens
On Dienstag, 23. August 2016 10:27:42 CEST Michael Walle wrote: > direntlen is always >= 8. Therefore, the loop condition is always true. > > Signed-off-by: Michael Walle > Suggested-by: Stefan Brüns Thinking again about it, direntlen is read from disk, and as any outside data should be untrus

[U-Boot] [PATCH v2 5/5] ext4: optimize direntlen loops

2016-08-23 Thread Michael Walle
direntlen is always >= 8. Therefore, the loop condition is always true. Signed-off-by: Michael Walle Suggested-by: Stefan Brüns --- fs/ext4/ext4_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index 4a003cf..9430a3