[PATCH] exofs: Remove dead code in read_exec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The if (!pcol->read_4_write) at the error path is redundant
because all goto err; are after the if (pcol->read_4_write)
bale out.

Signed-off-by: Boaz Harrosh <bharrosh@xxxxxxxxxxx>
---
 fs/exofs/inode.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/exofs/inode.c b/fs/exofs/inode.c
index 87f05d9..449da05 100644
--- a/fs/exofs/inode.c
+++ b/fs/exofs/inode.c
@@ -364,9 +364,7 @@ err:
 	if (!pcol_copy) /* Failed before ownership transfer */
 		pcol_copy = pcol;
 
-	if (!pcol->read_4_write)
-		_unlock_pcol_pages(pcol_copy, ret, READ);
-
+	_unlock_pcol_pages(pcol_copy, ret, READ);
 	pcol_free(pcol_copy);
 	kfree(pcol_copy);
 	return ret;
-- 
1.7.10.2.677.gb6bc67f


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux