Date: Mon, 14 Sep 2015 15:47:25 +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-8@freebsd.org Subject: svn commit: r287788 - stable/8/sys/gnu/fs/reiserfs Message-ID: <201509141547.t8EFlPVW037828@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avatar Date: Mon Sep 14 15:47:25 2015 New Revision: 287788 URL: https://svnweb.freebsd.org/changeset/base/287788 Log: MFC r286888: Using consistent coding style to deal with error inside the loop. Modified: stable/8/sys/gnu/fs/reiserfs/reiserfs_vfsops.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/gnu/ (props changed) Modified: stable/8/sys/gnu/fs/reiserfs/reiserfs_vfsops.c ============================================================================== --- stable/8/sys/gnu/fs/reiserfs/reiserfs_vfsops.c Mon Sep 14 15:47:20 2015 (r287787) +++ stable/8/sys/gnu/fs/reiserfs/reiserfs_vfsops.c Mon Sep 14 15:47:25 2015 (r287788) @@ -988,8 +988,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?201509141547.t8EFlPVW037828>