From: Chuck Lever Date: Tue, 14 Dec 2010 14:58:59 +0000 (+0000) Subject: SUNRPC: Avoid return code checking in rpcbind XDR encoder functions X-Git-Tag: v2.6.38-rc1~407^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4129ccf303593a1922a934697f99e682ff491504;p=pandora-kernel.git SUNRPC: Avoid return code checking in rpcbind XDR encoder functions Clean up. The trend in the other XDR encoder functions is to BUG() when encoding problems occur, since a problem here is always due to a local coding error. Then, instead of a status, zero is unconditionally returned. Update the rpcbind XDR encoders to behave this way. To finish the update, use the new-style be32_to_cpup() and cpu_to_be32() macros, and compute the buffer sizes using raw integers instead of sizeof(). This matches the conventions used in other XDR functions. Signed-off-by: Chuck Lever Tested-by: J. Bruce Fields Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed