Re: [PATCH 1/2] lib/mpi: mpi_read_raw_data(): purge redundant clearing of nbits

From: Herbert Xu
Date: Tue May 31 2016 - 06:19:07 EST


On Thu, May 26, 2016 at 01:05:31PM +0200, Nicolai Stange wrote:
> In mpi_read_raw_data(), unsigned nbits is calculated as follows:
>
> nbits = nbytes * 8;
>
> and redundantly cleared later on if nbytes == 0:
>
> if (nbytes > 0)
> ...
> else
> nbits = 0;
>
> Purge this redundant clearing for the sake of clarity.
>
> Signed-off-by: Nicolai Stange <nicstange@xxxxxxxxx>

Both applied.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt