Skip to content
Snippets Groups Projects
Commit 58dadcdb authored by Julia Lawall's avatar Julia Lawall Committed by Mark Fasheh
Browse files

fs/ocfs2/aops.c: test for IS_ERR rather than 0


The function ocfs2_start_trans always returns either a valid pointer or a
value made with ERR_PTR, so its result should be tested with IS_ERR, not
with a test for 0.

Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 4d0ddb2c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment