WaE: comparison is always false due to limited range of data type

Signed-off-by: Stephan Bergmann <sbergman@redhat.com>; plus some cosmetics to
silence loplugin:bodynotinblock.

Change-Id: I8ff9da84021635c9de66c9544b46834a2d9efcf7