Browse Source

[PATCH] Remove redundant NULL checks before [kv]free - in fs/

Remove redundant NULL checks before kfree for fs/

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Jesper Juhl 19 years ago
parent
commit
4ad98457aa
1 changed files with 2 additions and 6 deletions
  1. 2 6
      fs/ocfs2/vote.c

+ 2 - 6
fs/ocfs2/vote.c

@@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs2_super *osb)
 	}
 	}
 
 
 bail:
 bail:
-	if (request)
-		kfree(request);
-
+	kfree(request);
 	return status;
 	return status;
 }
 }
 
 
@@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocfs2_super *osb)
 	}
 	}
 
 
 bail:
 bail:
-	if (request)
-		kfree(request);
-
+	kfree(request);
 	return status;
 	return status;
 }
 }