Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4058482pxf; Tue, 23 Mar 2021 01:12:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbnftxgU7d4fI8rZcswu5v7wW7Wcou67lqFZXn5CRLz1DHVen7mO4ubbfVK4hqsBp5uDeb X-Received: by 2002:a50:ee18:: with SMTP id g24mr3393086eds.267.1616487143354; Tue, 23 Mar 2021 01:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616487143; cv=none; d=google.com; s=arc-20160816; b=Th82XRSPfyWNdi9jKzvMOk44KDez0SIhae3HipLmPwAogah+21Fd5jsaAI3jXAt7ln Qz+01Z92IURjWnOjTJvjBpDPsUl5Zljx9CbnOmi9PFi6PsBLAO6QtcbAQmESO9lYeJQI eKqx0YQsf2G6dEmWbPSHkVhGeTljya4r6CwcVixA7Nxm8+IdiXsxTDDtvb4zgbizWSyz E42nWjA2FYEE5deA5F64oSZ9wMmE8NDhD8mrlsyTLsjOOrO2I8sh9I3i8/gAZOMobUQD RI4kpExNpb9NEkqJiYycYQQLJbgAid1rWQBQMOsoEP3V0cJjJsIJ5wwwLOssDp8QkaqR 7BuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:reply-to:subject:cc:to :from:date:mime-version; bh=IcBhpFohH7piWfwpOBpkLCQEFi+Q7ClZsOrh2mpOFDc=; b=D6GuYLUfNp/i4OMLawWnFuWxnSDH6T/Oa2pJOZNDln4lj2klXBaMMU1p5LRuXp62ox Vhkb66mk4ZTUJieoke1LFhhOf5wJFbNm3DBoD+WBxA7jppuAEJjqs0vxT33CxMC0UQJf s1Gsc56fj3o9arPJAXGEGZXbv+7cGPU/DXZYEYLkiQIO5QvKCTQur8yBHQSKlIP3mAuY 6GvwXvdutO96jF338mCVbEjSSZ5Kbbeio8wTqv/v2IfNZV+mGzAv9jo4ZiVQ/frEhvC3 W8+3lfzi8z02Pr6gpTEcLCWnskcZaBa4qYjmcUuzhrGBlZYErMLsC2qnetPhe7V+mgOt ojzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si4500090ejx.637.2021.03.23.01.12.00; Tue, 23 Mar 2021 01:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbhCWIJB (ORCPT + 99 others); Tue, 23 Mar 2021 04:09:01 -0400 Received: from protonic.xs4all.nl ([83.163.252.89]:60046 "EHLO protonic.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhCWII4 (ORCPT ); Tue, 23 Mar 2021 04:08:56 -0400 Received: from fiber.protonic.nl (edge2.prtnl [192.168.1.170]) by sparta.prtnl (Postfix) with ESMTP id 9B75244A022C; Tue, 23 Mar 2021 09:08:54 +0100 (CET) MIME-Version: 1.0 Date: Tue, 23 Mar 2021 09:08:54 +0100 From: robin To: Geert Uytterhoeven Cc: Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/17] auxdisplay: ht16k33: Remove unneeded error check in keypad probe() Reply-To: robin@protonic.nl In-Reply-To: <20210322144848.1065067-11-geert@linux-m68k.org> References: <20210322144848.1065067-1-geert@linux-m68k.org> <20210322144848.1065067-11-geert@linux-m68k.org> User-Agent: Roundcube Webmail/1.4.8 Message-ID: X-Sender: robin@protonic.nl Organization: Protonic Holland Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-22 15:48, Geert Uytterhoeven wrote: > There is no need to check the return code of input_register_device(), > just propagate it to the caller. > > Signed-off-by: Geert Uytterhoeven > --- > drivers/auxdisplay/ht16k33.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/drivers/auxdisplay/ht16k33.c > b/drivers/auxdisplay/ht16k33.c > index 6d39f12054618fa5..13d18f218b4d196e 100644 > --- a/drivers/auxdisplay/ht16k33.c > +++ b/drivers/auxdisplay/ht16k33.c > @@ -378,11 +378,7 @@ static int ht16k33_keypad_probe(struct i2c_client > *client, > > ht16k33_keypad_stop(keypad->dev); > > - err = input_register_device(keypad->dev); > - if (err) > - return err; > - > - return 0; > + return input_register_device(keypad->dev); > } > > static int ht16k33_probe(struct i2c_client *client, Acked-by: Robin van der Gracht