smb: client: Simplify conditional compilation in cifs_do_create()
Subsystems (3)
PATCH 1/1 smb: client: Simplify conditional compilation in cifs_do_create()
From: Markus Elfring <[email protected]>
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 <[email protected]>
--- fs/smb/client/dir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
fs/smb/client/dir.c +2 -3
@@ -402,10 +402,9 @@ static int cifs_do_create(struct inode *inode, struct dentry *direntry, unsignedif (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) {
Signature · 1 line
2.51.0