lib/mpi: mpi_write_sgl(): replace open coded endian conversion
authorNicolai Stange <nicstange@gmail.com>
Tue, 22 Mar 2016 12:12:39 +0000 (13:12 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Apr 2016 12:35:48 +0000 (20:35 +0800)
commitd755290689646fa66cc4830ca55569f2c9863666
tree1f53b405afdfe27b0b5549fb5283b0f5b162b64a
parentcece762f6f3cb1c1687f467e98faef21b0096600
lib/mpi: mpi_write_sgl(): replace open coded endian conversion

Currently, the endian conversion from CPU order to BE is open coded in
mpi_write_sgl().

Replace this by the centrally provided cpu_to_be*() macros.

Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/mpi/mpicoder.c