fs/hfs/catalog.c: use list_for_each_entry in hfs_cat_delete
authorGeliang Tang <geliangtang@163.com>
Wed, 20 Jan 2016 22:59:32 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 21 Jan 2016 01:09:18 +0000 (17:09 -0800)
commit2c35dea279351f2ad74a99126b29f9f5394ccc04
tree90ae39aaea2934102d2d9ba9abef7174e41c929a
parentf057f3b226a5c513aafaa5ece94f3a7f363215c5
fs/hfs/catalog.c: use list_for_each_entry in hfs_cat_delete

Use list_for_each_entry() instead of list_for_each() to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfs/catalog.c