# Re: \[PATCH V2 01/12\] thunderbolt: dma\_port: Check 'dma\_port\_flash\_write\_block()'s return value

- From: Mika Westerberg \<mika.westerberg@linux.intel.com\>
- Date: 2021-01-28 11:03:31 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2021/01/6250765
- Thread: https://ratatoskr.run/linux-usb/2021/01/6249332/t.md

```text
On Thu, Jan 28, 2021 at 08:52:33AM +0000, Lee Jones wrote:
> ... and take the error path if it fails.
> 
> Fixes the following W=1 kernel build warning(s):
> 
>  drivers/thunderbolt/dma_port.c: In function ‘dma_port_flash_write_block’:
>  drivers/thunderbolt/dma_port.c:331:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
> 
> Cc: Andreas Noever <andreas.noever@gmail.com>
> Cc: Michael Jamet <redacted>
> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
> Cc: Yehezkel Bernat <YehezkelShB@gmail.com>
> Cc: <redacted>
> Signed-off-by: Lee Jones <redacted>

Applied, thanks!
```
