Skip to contentSkip to conversation

NFS: cleanup endian type in decode_ds_addr()

PATCH New Dan Carpenter 1 participant 1 message Jan 12, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

fs/nfs/nfs4filelayoutdev.c +1 -1
index ed388aa..8ae9190 100644
@@ -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;