[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1401222231-21656-1-git-send-email-rickard_strandqvist@spectrumdigital.se>
Date: Tue, 27 May 2014 22:23:51 +0200
From: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
To: Mark Fasheh <mfasheh@...e.com>, Joel Becker <jlbec@...lplan.org>
Cc: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>,
ocfs2-devel@....oracle.com, linux-kernel@...r.kernel.org
Subject: [PATCH] fs: ocfs2: move_extents.c: Fix to remove null pointer checks that could never happen
Removal of null pointer checks that could never happen
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists