[PATCH] check_partition(): fix error check

Fix inverted check introduced in 57881dd9df40b76dc7fc6a0d13fd75f337accb32 "Fix
check_partition routines".

Signed-off-by: Suzuki K P <suzuki@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by suzuki and committed by Linus Torvalds 9bebff6c f6dfb4fd

+1 -1
+1 -1
fs/partitions/check.c
··· 180 180 } 181 181 if (res > 0) 182 182 return state; 183 - if (!err) 183 + if (err) 184 184 /* The partition is unrecognized. So report I/O errors if there were any */ 185 185 res = err; 186 186 if (!res)