as requested by @chennes in PR #5164, the code can be simplified: - remove a redundant type cast, a redundant qualifier and an inconsistent and unnecessary check
as requested by @chennes in PR #5164, the code can be simplified: - remove a redundant type cast, a redundant qualifier and an inconsistent and unnecessary check