# Re: \[PATCH 1/4\] block: split wbt\_init() into two parts

- From: Bart Van Assche \<bvanassche@acm.org\>
- Date: 2021-06-04 00:32:26 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/06/6403170
- Thread: https://ratatoskr.run/linux-block/2021/05/6402949/t.md

```text
On 5/25/21 1:04 AM, Ming Lei wrote:
> +int wbt_init(struct request_queue *q)
> +{
> +	int ret = wbt_alloc(q);
> +	struct rq_wb *rwb;
> +
> +	if (ret)
> +		return ret;

A coding style nit: please move the 'ret = wbt_alloc(q)' assignment to a
line of its own since wbt_alloc() allocates memory. Otherwise this patch
looks good to me.

Thanks,

Bart.
```
