summaryrefslogtreecommitdiffstats
path: root/fs/squashfs/dir.c
diff options
context:
space:
mode:
authorAjeet Yadav <ajeet.yadav.77@gmail.com>2012-02-02 13:04:49 +0530
committerPhillip Lougher <phillip@squashfs.org.uk>2012-03-10 03:00:54 +0000
commit4826d83d9c4f6bbf61f997e7b68547b4bffd8a49 (patch)
tree097311a82c02b3d0d8fc35ed1589e3edd6bccbcb /fs/squashfs/dir.c
parent192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff)
downloadlinux-4826d83d9c4f6bbf61f997e7b68547b4bffd8a49.tar.bz2
Squashfs: use define instead of constant
Its better to use defined name instead of constant Signed-off-by: Ajeet Yadav <ajeet.yadav.77@gmail.com> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'fs/squashfs/dir.c')
-rw-r--r--fs/squashfs/dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/squashfs/dir.c b/fs/squashfs/dir.c
index 9dfe2ce0fb70..4a812bfcdd5e 100644
--- a/fs/squashfs/dir.c
+++ b/fs/squashfs/dir.c
@@ -173,8 +173,7 @@ static int squashfs_readdir(struct file *file, void *dirent, filldir_t filldir)
dir_count = le32_to_cpu(dirh.count) + 1;
- /* dir_count should never be larger than 256 */
- if (dir_count > 256)
+ if (dir_count > SQUASHFS_DIR_COUNT)
goto failed_read;
while (dir_count--) {