summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/cuboot-83xx.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-12-14 15:58:30 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-12-16 18:37:24 +0100
commit49b170047f4a9fe1483132e14a11bdf493bdb8af (patch)
tree626d5a764350c6a0f57c7566df86e26aede2cdd3 /arch/powerpc/boot/cuboot-83xx.c
parentNFS: Squelch compiler warning in decode_getdeviceinfo() (diff)
downloadlinux-49b170047f4a9fe1483132e14a11bdf493bdb8af.tar.xz
linux-49b170047f4a9fe1483132e14a11bdf493bdb8af.zip
NSM: Avoid return code checking in NSM 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 NSM 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 <chuck.lever@oracle.com> Tested-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'arch/powerpc/boot/cuboot-83xx.c')
0 files changed, 0 insertions, 0 deletions