diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-12-27 18:08:18 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-29 11:29:28 +0100 |
commit | 48dc7cc66ef5b69fcf28ec0b2ecf0338c188cf4e (patch) | |
tree | 78346f69e20aae3d77fd604e50b4360e73184f0b | |
parent | 100f721c0aeb96f687a658586afd22a67098c4a8 (diff) | |
download | mariadb-git-48dc7cc66ef5b69fcf28ec0b2ecf0338c188cf4e.tar.gz |
cleanup: redundant memcmp()
-rw-r--r-- | storage/innobase/fil/fil0crypt.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/storage/innobase/fil/fil0crypt.cc b/storage/innobase/fil/fil0crypt.cc index 75efcdfdab0..f68eabba579 100644 --- a/storage/innobase/fil/fil0crypt.cc +++ b/storage/innobase/fil/fil0crypt.cc @@ -251,11 +251,6 @@ fil_space_read_crypt_data( const byte* page, /*!< in: page 0 */ 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) { /* Crypt data is not stored. */ return NULL; |