Commit 068a35fd authored by Hyunchul Lee's avatar Hyunchul Lee Committed by Namjae Jeon
Browse files

ntfs: fix inconsistent indenting warnings



Detected by Smatch.

ndex.c:2041 ntfs_index_walk_up() warn:
  inconsistent indenting

mft.c:2462 ntfs_mft_record_alloc() warn:
  inconsistent indenting

Signed-off-by: default avatarHyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent 4e59f8a1
Loading
Loading
Loading
Loading
+34 −34
Original line number Diff line number Diff line
@@ -2007,11 +2007,12 @@ struct index_entry *ntfs_index_walk_down(struct index_entry *ie, struct ntfs_ind
static struct index_entry *ntfs_index_walk_up(struct index_entry *ie,
		struct ntfs_index_context *ictx)
{
	struct index_entry *entry;
	struct index_entry *entry = ie;
	s64 vcn;

	entry = ie;
	if (ictx->pindex > 0) {
	if (ictx->pindex <= 0)
		return NULL;

	do {
		ictx->pindex--;
		if (!ictx->pindex) {
@@ -2025,7 +2026,8 @@ static struct index_entry *ntfs_index_walk_up(struct index_entry *ie,
			ictx->ir = ntfs_ir_lookup(ictx->idx_ni, ictx->name,
						  ictx->name_len, &ictx->actx);
			if (ictx->ir)
					entry = ntfs_ie_get_by_pos(&ictx->ir->index,
				entry = ntfs_ie_get_by_pos(
					&ictx->ir->index,
					ictx->parent_pos[ictx->pindex]);
			else
				entry = NULL;
@@ -2033,7 +2035,8 @@ static struct index_entry *ntfs_index_walk_up(struct index_entry *ie,
			/* up into non-root node */
			vcn = ictx->parent_vcn[ictx->pindex];
			if (!ntfs_ib_read(ictx, vcn, ictx->ib)) {
					entry = ntfs_ie_get_by_pos(&ictx->ib->index,
				entry = ntfs_ie_get_by_pos(
					&ictx->ib->index,
					ictx->parent_pos[ictx->pindex]);
			} else
				entry = NULL;
@@ -2041,9 +2044,6 @@ static struct index_entry *ntfs_index_walk_up(struct index_entry *ie,
		ictx->entry = entry;
	} while (entry && (ictx->pindex > 0) &&
		 (entry->flags & INDEX_ENTRY_END));
	} else
		entry = NULL;

	return entry;
}

+1 −1

File changed.

Contains only whitespace changes.