Fix the following checkpatch.pl issue in lov_request.c: WARNING: Missing a blank line after declarations Signed-off-by: Riccardo Lucchese <riccardo.lucchese@xxxxxxxxx> Acked-by: Julia Lawall <julia.lawall@xxxxxxx> --- Changes in v2: - Changed the subject line to follow the same convention used by previous commits to the same file. - Added Acked-by - Julia. drivers/staging/lustre/lustre/lov/lov_request.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_request.c b/drivers/staging/lustre/lustre/lov/lov_request.c index ae670bb..7491f26 100644 --- a/drivers/staging/lustre/lustre/lov/lov_request.c +++ b/drivers/staging/lustre/lustre/lov/lov_request.c @@ -142,14 +142,14 @@ static int lov_check_set(struct lov_obd *lov, int idx) { int rc; struct lov_tgt_desc *desc; - mutex_lock(&lov->lov_lock); + mutex_lock(&lov->lov_lock); desc = lov->lov_tgts[idx]; rc = !desc || desc->ltd_active || (desc->ltd_exp && class_exp2cliimp(desc->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); } -- 1.9.1 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel