mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] smb: client: Simplify conditional compilation in __cifs_do_create()
@ 2026-06-12 17:39 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2026-06-12 17:39 UTC (permalink / raw)
  To: linux-cifs, samba-technical, Bharath SM, Paulo Alcantara,
	Ronnie Sahlberg, Shyam Prasad N, Steve French, Tom Talpey
  Cc: LKML, kernel-janitors, linux-fsdevel, Alexander Viro, David Howells

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 12 Jun 2026 19:24:14 +0200

Move an opening curly bracket behind the preprocessor directive “#endif”
so that an “#else” branch can be omitted.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 fs/smb/client/dir.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/fs/smb/client/dir.c b/fs/smb/client/dir.c
index 88a4a1787ff0..1e747e8c51e5 100644
--- a/fs/smb/client/dir.c
+++ b/fs/smb/client/dir.c
@@ -432,10 +432,9 @@ static int __cifs_do_create(struct inode *dir, struct dentry *direntry,
 	if (tcon->unix_ext)
 		rc = cifs_get_inode_info_unix(&newinode, full_path, dir->i_sb,
 					      xid);
-	else {
-#else
-	{
+	else
 #endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
+	{
 		/* TODO: Add support for calling POSIX query info here, but passing in fid */
 		rc = cifs_get_inode_info(&newinode, full_path, buf, dir->i_sb, xid, fid);
 		if (newinode) {
-- 
2.54.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-12 17:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 17:39 [PATCH] smb: client: Simplify conditional compilation in __cifs_do_create() Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®