Mem: Fix incorrect logic in bus blocksize check
This patch fixes the logic in the blocksize check such that the warning is printed if the size is not 16, 32, 64 or 128.
This commit is contained in:
parent
2a740aa096
commit
b6bd4f34b4
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ BaseBus::init()
|
||||||
blockSize = peer_block_size;
|
blockSize = peer_block_size;
|
||||||
|
|
||||||
// check if the block size is a value known to work
|
// check if the block size is a value known to work
|
||||||
if (blockSize != 16 || blockSize != 32 || blockSize != 64 ||
|
if (!(blockSize == 16 || blockSize == 32 || blockSize == 64 ||
|
||||||
blockSize != 128)
|
blockSize == 128))
|
||||||
warn_once("Block size is neither 16, 32, 64 or 128 bytes.\n");
|
warn_once("Block size is neither 16, 32, 64 or 128 bytes.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue