Skip to content

Commit

Permalink
NFS: cleanup endian type in decode_ds_addr()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Trond Myklebust committed Jan 12, 2012
1 parent 0e0243d commit 13fff2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4filelayoutdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 13fff2f

Please sign in to comment.