Commit 48dc7cc6 authored by Sergei Golubchik's avatar Sergei Golubchik

cleanup: redundant memcmp()

parent 100f721c
...@@ -251,11 +251,6 @@ fil_space_read_crypt_data( ...@@ -251,11 +251,6 @@ fil_space_read_crypt_data(
const byte* page, /*!< in: page 0 */ const byte* page, /*!< in: page 0 */
ulint offset) /*!< in: offset */ ulint offset) /*!< in: offset */
{ {
if (memcmp(page + offset, EMPTY_PATTERN, MAGIC_SZ) == 0) {
/* Crypt data is not stored. */
return NULL;
}
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) { if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
/* Crypt data is not stored. */ /* Crypt data is not stored. */
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment