Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f01fa5fb authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

hfsplus: add missing curly braces in hfsplus_delete_cat()



This doesn't change how the code works, but clearly the curly braces were
intended.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Sougata Santra <sougata@tuxera.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 13f24485
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -350,10 +350,11 @@ int hfsplus_delete_cat(u32 cnid, struct inode *dir, struct qstr *str)
			&fd.search_key->cat.name.unicode,
			off + 2, len);
		fd.search_key->key_len = cpu_to_be16(6 + len);
	} else
	} else {
		err = hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, str);
		if (unlikely(err))
			goto out;
	}

	err = hfs_brec_find(&fd, hfs_find_rec_by_key);
	if (err)