From fa2d3fad649c3aa75f006f568190dfde235d7fc3 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 9 Oct 2006 14:30:39 +0000 Subject: [PATCH] remove redundant code. --- lustre/obdfilter/filter_io.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lustre/obdfilter/filter_io.c b/lustre/obdfilter/filter_io.c index 9aa509d..a6645d4 100644 --- a/lustre/obdfilter/filter_io.c +++ b/lustre/obdfilter/filter_io.c @@ -293,12 +293,8 @@ static int filter_preprw_read(int cmd, struct obd_export *exp, struct obdo *oa, rc = filter_verify_capa(exp, NULL, obdo_mdsno(oa), capa, CAPA_OPC_OSS_READ); - if (rc) { - rc = filter_verify_capa(exp, NULL, obdo_mdsno(oa), capa, - CAPA_OPC_OSS_READ); - if (rc) - RETURN(rc); - } + if (rc) + RETURN(rc); if (oa && oa->o_valid & OBD_MD_FLGRANT) { spin_lock(&obd->obd_osfs_lock); -- 1.8.3.1