diff options
author | Ajeet Yadav <ajeet.yadav.77@gmail.com> | 2012-02-02 02:34:49 -0500 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2012-03-09 22:00:54 -0500 |
commit | 4826d83d9c4f6bbf61f997e7b68547b4bffd8a49 (patch) | |
tree | 097311a82c02b3d0d8fc35ed1589e3edd6bccbcb /fs/squashfs/namei.c | |
parent | 192cfd58774b4d17b2fe8bdc77d89c2ef4e0591d (diff) |
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/namei.c')
-rw-r--r-- | fs/squashfs/namei.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/squashfs/namei.c b/fs/squashfs/namei.c index 0682b38d7e31..66c70fc8c80b 100644 --- a/fs/squashfs/namei.c +++ b/fs/squashfs/namei.c | |||
@@ -177,8 +177,7 @@ static struct dentry *squashfs_lookup(struct inode *dir, struct dentry *dentry, | |||
177 | 177 | ||
178 | dir_count = le32_to_cpu(dirh.count) + 1; | 178 | dir_count = le32_to_cpu(dirh.count) + 1; |
179 | 179 | ||
180 | /* dir_count should never be larger than 256 */ | 180 | if (dir_count > SQUASHFS_DIR_COUNT) |
181 | if (dir_count > 256) | ||
182 | goto data_error; | 181 | goto data_error; |
183 | 182 | ||
184 | while (dir_count--) { | 183 | while (dir_count--) { |