diff options
author | avatar <avatar@FreeBSD.org> | 2015-08-18 13:16:23 +0000 |
---|---|---|
committer | avatar <avatar@FreeBSD.org> | 2015-08-18 13:16:23 +0000 |
commit | 280c324e9f48d51f1b717c5be2e4b76d9bd3019b (patch) | |
tree | d3f26a1a102887a970602e2f982389a85cd6eb14 /sys/gnu/fs/reiserfs | |
parent | c7e27a0c932305b8aa3647cc4169637da15ae448 (diff) | |
download | FreeBSD-src-280c324e9f48d51f1b717c5be2e4b76d9bd3019b.zip FreeBSD-src-280c324e9f48d51f1b717c5be2e4b76d9bd3019b.tar.gz |
Using consistent coding style to deal with error inside the loop.
MFC after: 1 week
Diffstat (limited to 'sys/gnu/fs/reiserfs')
-rw-r--r-- | sys/gnu/fs/reiserfs/reiserfs_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c index 496a6ad..ad2aab0 100644 --- a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c +++ b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c @@ -960,8 +960,8 @@ uint32_t find_hash_out(struct reiserfs_mount *rmp) key.on_disk_key.k_objectid, key.on_disk_key.k_dir_id); retval = search_by_entry_key(sbi, &key, &path, &de); if (retval == IO_ERROR) { - pathrelse(&path); - return (UNSET_HASH); + hash = UNSET_HASH; + break; } if (retval == NAME_NOT_FOUND) de.de_entry_num--; |