Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2015 04:16:49 +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-9@freebsd.org
Subject:   svn commit: r287587 - stable/9/sys/gnu/fs/reiserfs
Message-ID:  <201509090416.t894Gnuv072871@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avatar
Date: Wed Sep  9 04:16:48 2015
New Revision: 287587
URL: https://svnweb.freebsd.org/changeset/base/287587

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

Modified:
  stable/9/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/gnu/fs/reiserfs/reiserfs_vfsops.c
==============================================================================
--- stable/9/sys/gnu/fs/reiserfs/reiserfs_vfsops.c	Wed Sep  9 03:15:25 2015	(r287586)
+++ stable/9/sys/gnu/fs/reiserfs/reiserfs_vfsops.c	Wed Sep  9 04:16:48 2015	(r287587)
@@ -961,8 +961,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?201509090416.t894Gnuv072871>