Looking at the register path, there will be bigger issues if `dev` is NULL. Hence, we can drop this check and assume there's no way that `dev` can be NULL at this point. Signed-off-by: Nuno Sá <nuno.sa@xxxxxxxxxx> --- drivers/iio/adc/adi-axi-adc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iio/adc/adi-axi-adc.c b/drivers/iio/adc/adi-axi-adc.c index 86b6b65916ee..e216e37e8c8c 100644 --- a/drivers/iio/adc/adi-axi-adc.c +++ b/drivers/iio/adc/adi-axi-adc.c @@ -326,9 +326,6 @@ static struct adi_axi_adc_client *adi_axi_adc_attach_client(struct device *dev) mutex_lock(®istered_clients_lock); list_for_each_entry(cl, ®istered_clients, entry) { - if (!cl->dev) - continue; - if (cl->dev->of_node != cln) continue; -- 2.25.1