staging: lustre: lov: Add a blank line after declarations in lov_request.c
authorRiccardo Lucchese <riccardo.lucchese@gmail.com>
Mon, 21 Jul 2014 10:15:56 +0000 (12:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jul 2014 19:29:10 +0000 (12:29 -0700)
Fix the following checkpatch.pl issue in lov_request.c:
WARNING: Missing a blank line after declarations

Signed-off-by: Riccardo Lucchese <riccardo.lucchese@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_request.c

index da424de5e8e098979ba524238f1ba6fe2a1446dd..887b4b08e6a5a3ee0c3a0f9a4370eb840185767f 100644 (file)
@@ -142,14 +142,14 @@ static int lov_check_set(struct lov_obd *lov, int idx)
 {
        int rc;
        struct lov_tgt_desc *tgt;
-       mutex_lock(&lov->lov_lock);
 
+       mutex_lock(&lov->lov_lock);
        tgt = lov->lov_tgts[idx];
        rc = !tgt || tgt->ltd_active ||
                (tgt->ltd_exp &&
                 class_exp2cliimp(tgt->ltd_exp)->imp_connect_tried);
-
        mutex_unlock(&lov->lov_lock);
+
        return rc;
 }
 
@@ -836,6 +836,7 @@ static int cb_getattr_update(void *cookie, int rc)
 {
        struct obd_info *oinfo = cookie;
        struct lov_request *lovreq;
+
        lovreq = container_of(oinfo, struct lov_request, rq_oi);
        return lov_update_common_set(lovreq->rq_rqset, lovreq, rc);
 }
@@ -1018,6 +1019,7 @@ static int cb_setattr_update(void *cookie, int rc)
 {
        struct obd_info *oinfo = cookie;
        struct lov_request *lovreq;
+
        lovreq = container_of(oinfo, struct lov_request, rq_oi);
        return lov_update_setattr_set(lovreq->rq_rqset, lovreq, rc);
 }
@@ -1141,6 +1143,7 @@ static int cb_update_punch(void *cookie, int rc)
 {
        struct obd_info *oinfo = cookie;
        struct lov_request *lovreq;
+
        lovreq = container_of(oinfo, struct lov_request, rq_oi);
        return lov_update_punch_set(lovreq->rq_rqset, lovreq, rc);
 }