aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-07-24 12:29:10 -0700
committerDominique Martinet <dominique.martinet@cea.fr>2018-08-13 09:34:58 +0900
commitc69f297d7f0b46187919d5c2aa36183688ecf3d4 (patch)
treec51979030970ebbd573bd9bb3ad034fd0b2a6805 /net/9p
parent9p: fix multiple NULL-pointer-dereferences (diff)
downloadlinux-dev-c69f297d7f0b46187919d5c2aa36183688ecf3d4.tar.xz
linux-dev-c69f297d7f0b46187919d5c2aa36183688ecf3d4.zip
9p: fix whitespace issues
Remove trailing whitespace and blank lines at EOF Link: http://lkml.kernel.org/m/20180724192918.31165-11-sthemmin@microsoft.com Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Diffstat (limited to 'net/9p')
-rw-r--r--net/9p/client.c4
-rw-r--r--net/9p/trans_virtio.c2
-rw-r--r--net/9p/util.c1
3 files changed, 3 insertions, 4 deletions
diff --git a/net/9p/client.c b/net/9p/client.c
index 20088aa06343..deae53a7dffc 100644
--- a/net/9p/client.c
+++ b/net/9p/client.c
@@ -333,7 +333,7 @@ struct p9_req_t *p9_tag_lookup(struct p9_client *c, u16 tag)
* buffer to read the data into */
tag++;
- if(tag >= c->max_tag)
+ if (tag >= c->max_tag)
return NULL;
row = tag / P9_ROW_MAXTAG;
@@ -1558,7 +1558,7 @@ p9_client_read(struct p9_fid *fid, u64 offset, struct iov_iter *to, int *err)
int count = iov_iter_count(to);
int rsize, non_zc = 0;
char *dataptr;
-
+
rsize = fid->iounit;
if (!rsize || rsize > clnt->msize-P9_IOHDRSZ)
rsize = clnt->msize - P9_IOHDRSZ;
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c
index 8ca356eb66bb..6265d1d62749 100644
--- a/net/9p/trans_virtio.c
+++ b/net/9p/trans_virtio.c
@@ -456,7 +456,7 @@ req_retry_pinned:
out += pack_sg_list_p(chan->sg, out, VIRTQUEUE_NUM,
out_pages, out_nr_pages, offs, outlen);
}
-
+
/*
* Take care of in data
* For example TREAD have 11.
diff --git a/net/9p/util.c b/net/9p/util.c
index 59f278e64f58..55ad98277e85 100644
--- a/net/9p/util.c
+++ b/net/9p/util.c
@@ -138,4 +138,3 @@ int p9_idpool_check(int id, struct p9_idpool *p)
return idr_find(&p->pool, id) != NULL;
}
EXPORT_SYMBOL(p9_idpool_check);
-