wrong equals comparison

Reviewer: @rlane @andi-bigswitch

Title.