Commit a2d6321b authored by Namjae Jeon's avatar Namjae Jeon
Browse files

cifsd: braces {} should be used on all arms of this statement



Fix "CHECK: braces {} should be used on all arms of this statement"
from checkpatch.pl --strict.

Signed-off-by: default avatarNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent a2d0b503
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -160,9 +160,9 @@ static void encode_asn_tag(char *buf,
	/* insert tag */
	buf[index++] = tag;

	if (!hdr_len)
	if (!hdr_len) {
		buf[index++] = len;
	else {
	} else {
		buf[index++] = 0x80 | hdr_len;
		for (i = hdr_len - 1; i >= 0; i--)
			buf[index++] = (len >> (i * 8)) & 0xFF;
@@ -172,9 +172,9 @@ static void encode_asn_tag(char *buf,
	len = len - (index - *ofs);
	buf[index++] = seq;

	if (!hdr_len)
	if (!hdr_len) {
		buf[index++] = len;
	else {
	} else {
		buf[index++] = 0x80 | hdr_len;
		for (i = hdr_len - 1; i >= 0; i--)
			buf[index++] = (len >> (i * 8)) & 0xFF;
+2 −2
Original line number Diff line number Diff line
@@ -212,9 +212,9 @@ int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode)

	mode |= S_IFDIR;
	err = vfs_mkdir(&init_user_ns, d_inode(path.dentry), dentry, mode);
	if (err)
	if (err) {
		goto out;
	else if (d_unhashed(dentry)) {
	} else if (d_unhashed(dentry)) {
		struct dentry *d;

		d = lookup_one_len(dentry->d_name.name,