summaryrefslogtreecommitdiffstats
path: root/sys/gnu/ext2fs/ext2_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/ext2fs/ext2_subr.c')
-rw-r--r--sys/gnu/ext2fs/ext2_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gnu/ext2fs/ext2_subr.c b/sys/gnu/ext2fs/ext2_subr.c
index ed48acf..8ceac74 100644
--- a/sys/gnu/ext2fs/ext2_subr.c
+++ b/sys/gnu/ext2fs/ext2_subr.c
@@ -82,7 +82,7 @@ ext2_blkatoff(vp, offset, res, bpp)
bsize = blksize(fs, ip, lbn);
*bpp = NULL;
- if (error = bread(vp, lbn, bsize, NOCRED, &bp)) {
+ if ((error = bread(vp, lbn, bsize, NOCRED, &bp)) != 0) {
brelse(bp);
return (error);
}
OpenPOWER on IntegriCloud