linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] hfsplus: add missing curly braces in hfsplus_delete_cat()
@ 2015-02-25 13:36 Dan Carpenter
  2015-02-25 14:50 ` Sergei Antonov
  2015-02-25 17:42 ` Viacheslav Dubeyko
  0 siblings, 2 replies; 8+ messages in thread
From: Dan Carpenter @ 2015-02-25 13:36 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Vyacheslav Dubeyko, Sougata Santra, Sergei Antonov,
	Christoph Hellwig, linux-fsdevel, kernel-janitors

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/fs/hfsplus/catalog.c b/fs/hfsplus/catalog.c
index 7892e6f..022974a 100644
--- a/fs/hfsplus/catalog.c
+++ b/fs/hfsplus/catalog.c
@@ -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)

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-25 18:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 13:36 [patch] hfsplus: add missing curly braces in hfsplus_delete_cat() Dan Carpenter
2015-02-25 14:50 ` Sergei Antonov
2015-02-25 17:13   ` Dan Carpenter
2015-02-25 18:20     ` Sergei Antonov
2015-02-25 18:30       ` Dan Carpenter
2015-02-25 18:37         ` Sergei Antonov
2015-02-25 18:50           ` Dan Carpenter
2015-02-25 17:42 ` Viacheslav Dubeyko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).