Re: [patch] staging/lustre/osc: indent an if statement

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

 



> We accidentally removed a tab here.  Let's add it back, and some curly
> braces as well since this is a muti-line indent.

Reviewed-by: James Simmons <jsimmons@xxxxxxxxxxxxx>
 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> 
> diff --git a/drivers/staging/lustre/lustre/osc/osc_lock.c b/drivers/staging/lustre/lustre/osc/osc_lock.c
> index e337e87..bfc8d38 100644
> --- a/drivers/staging/lustre/lustre/osc/osc_lock.c
> +++ b/drivers/staging/lustre/lustre/osc/osc_lock.c
> @@ -607,9 +607,11 @@ static int osc_ldlm_glimpse_ast(struct ldlm_lock *dlmlock, void *data)
>  			lvb = req_capsule_server_get(cap, &RMF_DLM_LVB);
>  			result = cl_object_glimpse(env, obj, lvb);
>  		}
> -		if (!exp_connect_lvb_type(req->rq_export))
> -		req_capsule_shrink(&req->rq_pill, &RMF_DLM_LVB,
> -				   sizeof(struct ost_lvb_v1), RCL_SERVER);
> +		if (!exp_connect_lvb_type(req->rq_export)) {
> +			req_capsule_shrink(&req->rq_pill, &RMF_DLM_LVB,
> +					   sizeof(struct ost_lvb_v1),
> +					   RCL_SERVER);
> +		}
>  		cl_object_put(env, obj);
>  	} else {
>  		/*
> 
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux