# Re: \[PATCH 6/6\] i2c: Make remove callback return void

- From: Vladimir Oltean \<olteanv@gmail.com\>
- Date: 2022-07-06 09:14:07 
- List: netdev
- Page: https://ratatoskr.run/netdev/2022/07/8207100
- Thread: https://ratatoskr.run/linux-i2c/2022/07/8207100/t.md

```text
On Tue, Jun 28, 2022 at 04:03:12PM +0200, Uwe Kleine-König wrote:
> From: Uwe Kleine-König <redacted>
> 
> The value returned by an i2c driver's remove function is mostly ignored.
> (Only an error message is printed if the value is non-zero that the
> error is ignored.)
> 
> So change the prototype of the remove function to return no value. This
> way driver authors are not tempted to assume that passing an error to
> the upper layer is a good idea. All drivers are adapted accordingly.
> There is no intended change of behaviour, all callbacks were prepared to
> return 0 before.
> 
> Signed-off-by: Uwe Kleine-König <redacted>
> ---

Assuming you remove the spurious kasan change:

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
```
