Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 2015 09:41:17 +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-7@freebsd.org
Subject:   svn commit: r288988 - stable/7/sys/gnu/fs/reiserfs
Message-ID:  <201510070941.t979fH5Q061976@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avatar
Date: Wed Oct  7 09:41:17 2015
New Revision: 288988
URL: https://svnweb.freebsd.org/changeset/base/288988

Log:
  MFC r286888: Using consistent coding style to deal with error inside the loop.

Modified:
  stable/7/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
==============================================================================
--- stable/7/sys/gnu/fs/reiserfs/reiserfs_vfsops.c	Wed Oct  7 09:39:45 2015	(r288987)
+++ stable/7/sys/gnu/fs/reiserfs/reiserfs_vfsops.c	Wed Oct  7 09:41:17 2015	(r288988)
@@ -985,8 +985,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?201510070941.t979fH5Q061976>