[sheepdog] [PATCH v2] sheep: remove unused variable in cluster_make_fs

Liu Yuan namei.unix at gmail.com
Wed Sep 5 04:38:55 CEST 2012


On 09/05/2012 07:30 AM, MORITA Kazutaka wrote:
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
> 
> Sorry for noise, please ignore the previous version.
> 
> 
>  sheep/ops.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/sheep/ops.c b/sheep/ops.c
> index 465d73f..7b25270 100644
> --- a/sheep/ops.c
> +++ b/sheep/ops.c
> @@ -219,7 +219,6 @@ static int cluster_make_fs(const struct sd_req *req, struct sd_rsp *rsp,
>  	int i, ret;
>  	uint32_t latest_epoch;
>  	uint64_t created_time;
> -	struct siocb iocb = { 0 };
>  	struct store_driver *driver;
>  	char *store_name = data;
>  
> @@ -229,7 +228,6 @@ static int cluster_make_fs(const struct sd_req *req, struct sd_rsp *rsp,
>  
>  	sd_store = driver;
>  	latest_epoch = get_latest_epoch();
> -	iocb.epoch = latest_epoch;
>  
>  	ret = sd_store->format();
>  	if (ret != SD_RES_SUCCESS)
> 

Applied, thanks.

Yuan



More information about the sheepdog mailing list