fdo#78567: Revert "coverity#1209003: Unchecked return value"

This reverts commit 24ec38a96fa33b75435786caaca04f9cef86c289.

The commit has unfortunately caused a regression, reverting it.

Change-Id: If3098d4fce05b3bf95e3ffe021ff4f35e1cc42fc
coverity#1209003: Unchecked return value

Just silence coverity, the code is OK.

Change-Id: I0968800d67ab53cbbc942fa495d08adc4e94de0d