commit | 654842ef53d7820129a751f5cc620e5a69c694a9 | [log] [tgz] |
---|---|---|
author | Nicolai Stange <nicstange@gmail.com> | Tue Mar 22 13:12:36 2016 +0100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Tue Apr 05 20:35:46 2016 +0800 |
tree | 46a1c898fcaa82c8604e34ec2b4d3f396a6d369d | |
parent | f2d1362ff7d266b3d2b1c764d6c2ef4a3b457f23 [diff] |
lib/mpi: mpi_write_sgl(): fix style issue with lzero decrement Within the copying loop in mpi_write_sgl(), we have if (lzeros > 0) { ... lzeros -= sizeof(alimb); } However, at this point, lzeros < sizeof(alimb) holds. Make this fact explicit by rewriting the above to if (lzeros) { ... lzeros = 0; } Signed-off-by: Nicolai Stange <nicstange@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>