Fix error checking of open file error

comparison of constant 0 with boolean expression is always false

Change-Id: Ie166d70cc6f509a471e62272b29b1bfe9d9487ea
1 file changed