Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp738568pxb; Tue, 14 Sep 2021 07:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxu5P9FNVChBbSFVkbYYwgYBRbgUMxtDhkATFUG8qDUsjqAQ3G67VJB1cTekees+1897Mj X-Received: by 2002:a05:651c:2c6:: with SMTP id f6mr15342438ljo.7.1631630678554; Tue, 14 Sep 2021 07:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631630678; cv=none; d=google.com; s=arc-20160816; b=VsXaVlF3p9iEnwU3F5YTXULb5EJLnY6e+3GlLlrPfj8bQ+mq/9IaaEFb101qh5sxMC 8p583ienZKgfk3mmBughUzE3eYRRtBcEueb3e5D/U0S44UN29TZANVZT1yT02BYTH940 g9pZ3WuV1fxyL5QWXaiaRF22z6yBa5Vr6UKKIyr3wMSIbVPNJgh5lD92bR2omE8rujsG MgHX4xBxwc1s2f8uIGTYLyLMhT2H6qOZ2lg5WgTvU14VpoFxqM0FTeM2e7AsjdTPx5fs NPORrPM9e/7PiidfTqXgL3OuuvYc5j01sJZ70RZ+KPdZglrJ3pvZDqyVjukI4Gf1Uu6c f0cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=14a4H451+t4OTxY+IJUIwQmrHuJLpXsA1+uh1fxZcwc=; b=qBJw6QWbP7VX50ryj80xjaFf6U82VA5Gqy2rSZg/3HndjH4TNsG8PbLL8V79QETBR8 83RfmFv1ikXCuIhEQBWRQEATUlX3cna6veT2i/idnNfuKLqm5/EHeiRM4I9IiSnth4QD SfJKMZNYMR3qZPjz2VLyD0G8SklgN/9+rZ8Cfr/JBmNF9tUlnP85GJdiOWxS9zv+c3Iy kIGO4NDJElA/cBiL5pB24otCgk4FDbr+wGEzLbP2HvamINp+3ojDWCAvXWYR4vGV+CSa j0pcpjYzOmSUQwUOqJNHfJQKyvFdJigbF8jlOKhJlyZypGznn6RDogYcHrT76avocahy gLCw== 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 r4si13970968lfc.221.2021.09.14.07.44.11; Tue, 14 Sep 2021 07:44:38 -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 S234361AbhINOkb (ORCPT + 99 others); Tue, 14 Sep 2021 10:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234184AbhINOkH (ORCPT ); Tue, 14 Sep 2021 10:40:07 -0400 Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBA4C0617A7 for ; Tue, 14 Sep 2021 07:38:44 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:d46f:7eb5:4a37:9d14]) by andre.telenet-ops.be with bizsmtp id tqeg2500H2aSKa101qeg6T; Tue, 14 Sep 2021 16:38:42 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mQ9a3-004VGx-Rm; Tue, 14 Sep 2021 16:38:39 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mQ9a2-0028z2-Ow; Tue, 14 Sep 2021 16:38:38 +0200 From: Geert Uytterhoeven To: Robin van der Gracht , Miguel Ojeda , Rob Herring , Paul Burton Cc: Greg Kroah-Hartman , Pavel Machek , Marek Behun , devicetree@vger.kernel.org, linux-leds@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v6 11/19] auxdisplay: ht16k33: Remove unneeded error check in keypad probe() Date: Tue, 14 Sep 2021 16:38:27 +0200 Message-Id: <20210914143835.511051-12-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210914143835.511051-1-geert@linux-m68k.org> References: <20210914143835.511051-1-geert@linux-m68k.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to check the return code of input_register_device(), just propagate it to the caller. Signed-off-by: Geert Uytterhoeven Acked-by: Robin van der Gracht --- v6: - No changes, v5: - No changes, v4: - No changes, v3: - No changes, v2: - Add Acked-by. --- 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 99daf1974980b435..8c9acc4800bc94e0 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, -- 2.25.1