readwrite: fixing a bad bool comparison

Signed-off-by: Joe Buck <jbbuck@gmail.com>