lib/mpi: mpi_read_raw_data(): purge redundant clearing of nbits
authorNicolai Stange <nicstange@gmail.com>
Thu, 26 May 2016 11:05:31 +0000 (13:05 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 May 2016 08:41:58 +0000 (16:41 +0800)
commitdfd90510672f69206942546e8df4f63cfa91eae6
tree8aff567b82cb04a8fa033ff30d037a8c9d830533
parent4bdf1cfca5d46294142cdf49cd997b8b83491adf
lib/mpi: mpi_read_raw_data(): purge redundant clearing of nbits

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@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
lib/mpi/mpicoder.c