Skip to content

Commit 48dc7cc

Browse files
committed
cleanup: redundant memcmp()
1 parent 100f721 commit 48dc7cc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

storage/innobase/fil/fil0crypt.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ fil_space_read_crypt_data(
251251
const byte* page, /*!< in: page 0 */
252252
ulint offset) /*!< in: offset */
253253
{
254-
if (memcmp(page + offset, EMPTY_PATTERN, MAGIC_SZ) == 0) {
255-
/* Crypt data is not stored. */
256-
return NULL;
257-
}
258-
259254
if (memcmp(page + offset, CRYPT_MAGIC, MAGIC_SZ) != 0) {
260255
/* Crypt data is not stored. */
261256
return NULL;

0 commit comments

Comments
 (0)