RPC: remove unneeded checks from xdr_truncate_encode()
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Sep 2014 21:21:35 +0000 (17:21 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 23 Oct 2014 18:05:11 +0000 (14:05 -0400)
commited38c0699848508672793bbdcca98ee89aa6c71e
treeb0bc61cd7e8426030c41a71c7338d312950f6629
parente77a7b4f01b4c7b02c1c15b5d5b4ce4bd147b043
RPC: remove unneeded checks from xdr_truncate_encode()

Thanks to Andrea Arcangeli for pointing out these checks are
obviously unnecessary given the preceding calculations.

Reported-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xdr.c