[PATCH 5/6] afs: remove unneeded 'always true' check
Yuanhan Liu
yliu.null at gmail.com
Fri Jun 22 12:09:05 EDT 2012
duplicate_name: comes from a non-error cell, thus !IS_ERR(cell) is
unneeded here; remove it.
Signed-off-by: Yuanhan Liu <yliu.null at gmail.com>
---
fs/afs/cell.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/afs/cell.c b/fs/afs/cell.c
index 3c090b7..e23a9c7 100644
--- a/fs/afs/cell.c
+++ b/fs/afs/cell.c
@@ -203,7 +203,7 @@ error:
return ERR_PTR(ret);
duplicate_name:
- if (retref && !IS_ERR(cell))
+ if (retref)
afs_get_cell(cell);
read_unlock(&afs_cells_lock);
--
1.7.4.4
More information about the linux-afs
mailing list