public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: ocfs2: move_extents.c:  Fix to remove null pointer checks that could never happen
@ 2014-05-27 20:23 Rickard Strandqvist
  2014-05-29 21:03 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Rickard Strandqvist @ 2014-05-27 20:23 UTC (permalink / raw)
  To: Mark Fasheh, Joel Becker; +Cc: Rickard Strandqvist, ocfs2-devel, linux-kernel

Removal of null pointer checks that could never happen

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 fs/ocfs2/move_extents.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c
index 599eb4c..9ba3a10 100644
--- a/fs/ocfs2/move_extents.c
+++ b/fs/ocfs2/move_extents.c
@@ -904,9 +904,6 @@ static int ocfs2_move_extents(struct ocfs2_move_extents_context *context)
 	struct buffer_head *di_bh = NULL;
 	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);
 
-	if (!inode)
-		return -ENOENT;
-
 	if (ocfs2_is_hard_readonly(osb) || ocfs2_is_soft_readonly(osb))
 		return -EROFS;
 
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-29 22:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 20:23 [PATCH] fs: ocfs2: move_extents.c: Fix to remove null pointer checks that could never happen Rickard Strandqvist
2014-05-29 21:03 ` Andrew Morton
2014-05-29 21:23   ` Dave Jones
2014-05-29 21:38     ` Andrew Morton
2014-05-29 22:39       ` Rickard Strandqvist
2014-05-29 22:42         ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox