Assignment instead of comparison

'==' was a no-op here.