Commit 13fff2f35fd21d69ee84ef6a78610420e1a42818

Authored by Dan Carpenter
Committed by Trond Myklebust
1 parent 0e0243dc35

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

fs/nfs/nfs4filelayoutdev.c
... ... @@ -382,7 +382,7 @@
382 382 {
383 383 struct nfs4_pnfs_ds_addr *da = NULL;
384 384 char *buf, *portstr;
385   - u32 port;
  385 + __be16 port;
386 386 int nlen, rlen;
387 387 int tmp[2];
388 388 __be32 *p;