diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-18 22:52:47 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-18 22:52:47 +0100 |
commit | 1eea4abe07cbcde11f67df58be08a4f59803e7f1 (patch) | |
tree | e17a7c91f8c7bb2cd1c9ddad03355792e134350b | |
parent | 0bdae896e71118674c1d0fb27b15870c21480e72 (diff) |
remove useless check, this is a fixed-size array, thus pointer is never NULL
-rw-r--r-- | src/mint-lib/mint_api_refresh.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mint-lib/mint_api_refresh.c b/src/mint-lib/mint_api_refresh.c index a779bdbc3..9effa3d40 100644 --- a/src/mint-lib/mint_api_refresh.c +++ b/src/mint-lib/mint_api_refresh.c @@ -334,12 +334,9 @@ free_melt_data (struct MeltData *md) for (i=0;i<TALER_CNC_KAPPA;i++) { - if (NULL != md->fresh_coins) - { - for (j=0;j<md->num_fresh_coins;j++) - free_fresh_coin (&md->fresh_coins[i][j]); - GNUNET_free (md->fresh_coins[i]); - } + for (j=0;j<md->num_fresh_coins;j++) + free_fresh_coin (&md->fresh_coins[i][j]); + GNUNET_free (md->fresh_coins[i]); } /* Finally, clean up a bit... (NOTE: compilers might optimize this away, so this is @@ -774,7 +771,7 @@ deserialize_melt_data (const char *buf, &buf[off], buf_size - off, &ok); - if (off != buf_size) + if (off != buf_size) { GNUNET_break (0); ok = GNUNET_NO; |