Skip to content

Commit 2c75426

Browse files
author
Steve French
committed
smb3: fix some minor typos and repeated words
Minor cleanup pointed out by checkpatch (repeated words, missing blank lines) in smb2pdu.c and old header location referred to in transport.c Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent ebc3d4e commit 2c75426

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

fs/smb/client/smb2pdu.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ smb2_hdr_assemble(struct smb2_hdr *shdr, __le16 smb2_cmd,
8989
struct TCP_Server_Info *server)
9090
{
9191
struct smb3_hdr_req *smb3_hdr;
92+
9293
shdr->ProtocolId = SMB2_PROTO_NUMBER;
9394
shdr->StructureSize = cpu_to_le16(64);
9495
shdr->Command = smb2_cmd;
@@ -2239,7 +2240,7 @@ create_durable_v2_buf(struct cifs_open_parms *oparms)
22392240
* (most servers default to 120 seconds) and most clients default to 0.
22402241
* This can be overridden at mount ("handletimeout=") if the user wants
22412242
* a different persistent (or resilient) handle timeout for all opens
2242-
* opens on a particular SMB3 mount.
2243+
* on a particular SMB3 mount.
22432244
*/
22442245
buf->dcontext.Timeout = cpu_to_le32(oparms->tcon->handle_timeout);
22452246
buf->dcontext.Flags = cpu_to_le32(SMB2_DHANDLE_FLAG_PERSISTENT);
@@ -2384,7 +2385,7 @@ add_twarp_context(struct kvec *iov, unsigned int *num_iovec, __u64 timewarp)
23842385
return 0;
23852386
}
23862387

2387-
/* See See http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx */
2388+
/* See http://technet.microsoft.com/en-us/library/hh509017(v=ws.10).aspx */
23882389
static void setup_owner_group_sids(char *buf)
23892390
{
23902391
struct owner_group_sids *sids = (struct owner_group_sids *)buf;
@@ -3129,6 +3130,7 @@ void
31293130
SMB2_ioctl_free(struct smb_rqst *rqst)
31303131
{
31313132
int i;
3133+
31323134
if (rqst && rqst->rq_iov) {
31333135
cifs_small_buf_release(rqst->rq_iov[0].iov_base); /* request */
31343136
for (i = 1; i < rqst->rq_nvec; i++)

fs/smb/client/transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <linux/bvec.h>
1919
#include <linux/highmem.h>
2020
#include <linux/uaccess.h>
21-
#include <asm/processor.h>
21+
#include <linux/processor.h>
2222
#include <linux/mempool.h>
2323
#include <linux/sched/signal.h>
2424
#include <linux/task_io_accounting_ops.h>

0 commit comments

Comments
 (0)