Date: Sat, 29 Aug 2015 11:15:55 +0000 (UTC) From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r287287 - stable/10/sys/gnu/fs/reiserfs Message-ID: <201508291115.t7TBFt4J058744@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avatar Date: Sat Aug 29 11:15:54 2015 New Revision: 287287 URL: https://svnweb.freebsd.org/changeset/base/287287 Log: MFC r286888: Using consistent coding style to deal with error inside the loop. Modified: stable/10/sys/gnu/fs/reiserfs/reiserfs_vfsops.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/gnu/fs/reiserfs/reiserfs_vfsops.c ============================================================================== --- stable/10/sys/gnu/fs/reiserfs/reiserfs_vfsops.c Sat Aug 29 10:53:53 2015 (r287286) +++ stable/10/sys/gnu/fs/reiserfs/reiserfs_vfsops.c Sat Aug 29 11:15:54 2015 (r287287) @@ -960,8 +960,8 @@ uint32_t find_hash_out(struct reiserfs_m 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--;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508291115.t7TBFt4J058744>