This commit fixes [[https://github.com/bitcoin/bitcoin/pull/19912 | core#19912]] by removing a check that always returned true. That check was causing a -Wlogical-op warning because it treated a constant int as though it were a boolean.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19986 | core#19986]]