Commit 13fff2f3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Trond Myklebust

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 0e0243dc
......@@ -382,7 +382,7 @@ decode_ds_addr(struct xdr_stream *streamp, gfp_t gfp_flags)
{
struct nfs4_pnfs_ds_addr *da = NULL;
char *buf, *portstr;
u32 port;
__be16 port;
int nlen, rlen;
int tmp[2];
__be32 *p;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment