Re: [PATCH v3 4/6] iio: adc: ti-ads7950: simplify check for spi_setup() failures

From: David Lechner

Date: Sat Mar 07 2026 - 12:36:20 EST


On 3/5/26 1:21 PM, Dmitry Torokhov wrote:
> spi_setup() specifies that it returns 0 on success or negative error on
> failure. Therefore we can simply check for the return code being 0 or
> not.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
Reviewed-by: David Lechner <dlechner@xxxxxxxxxxxx>