diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-01-12 02:07:35 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-12 16:30:03 -0500 |
commit | 13fff2f35fd21d69ee84ef6a78610420e1a42818 (patch) | |
tree | 5e826f645baeb0c8bbe886658e3ad72346d53871 /fs/nfs | |
parent | 0e0243dc35a2349b3946e54f90e874be396fdb8b (diff) |
NFS: cleanup endian type in decode_ds_addr()
port is supposed to be a __be16 here. The existing code should work
fine, but this is a cleanup.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4filelayoutdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c index ed388aae9689..8ae91908f5aa 100644 --- a/fs/nfs/nfs4filelayoutdev.c +++ b/fs/nfs/nfs4filelayoutdev.c | |||
@@ -382,7 +382,7 @@ decode_ds_addr(struct xdr_stream *streamp, gfp_t gfp_flags) | |||
382 | { | 382 | { |
383 | struct nfs4_pnfs_ds_addr *da = NULL; | 383 | struct nfs4_pnfs_ds_addr *da = NULL; |
384 | char *buf, *portstr; | 384 | char *buf, *portstr; |
385 | u32 port; | 385 | __be16 port; |
386 | int nlen, rlen; | 386 | int nlen, rlen; |
387 | int tmp[2]; | 387 | int tmp[2]; |
388 | __be32 *p; | 388 | __be32 *p; |