[<prev] [next>] [day] [month] [year] [list]
Message-ID: <9cb35523-a312-41e1-ae73-048d183a7254@web.de>
Date: Tue, 14 Oct 2025 07:56:37 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-cifs@...r.kernel.org, samba-technical@...ts.samba.org,
Bharath SM <bharathsm@...rosoft.com>, Paulo Alcantara <pc@...guebit.org>,
Ronnie Sahlberg <ronniesahlberg@...il.com>,
Shyam Prasad N <sprasad@...rosoft.com>, Steve French <sfrench@...ba.org>,
Tom Talpey <tom@...pey.com>
Cc: LKML <linux-kernel@...r.kernel.org>, kernel-janitors@...r.kernel.org
Subject: [PATCH] smb: client: Simplify conditional compilation in
cifs_do_create()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Tue, 14 Oct 2025 07:48:28 +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@...rs.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 694c362740a9..cbead2cc44a0 100644
--- a/fs/smb/client/dir.c
+++ b/fs/smb/client/dir.c
@@ -402,10 +402,9 @@ static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsigned
if (tcon->unix_ext)
rc = cifs_get_inode_info_unix(&newinode, full_path, inode->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, inode->i_sb, xid, fid);
if (newinode) {
--
2.51.0
Powered by blists - more mailing lists