Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3499428pxf; Mon, 22 Mar 2021 07:51:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDRr+ep1Eb5hHKPe1cUK1ev+WtPHJ2lZ2zERmwSgk37t7TRxbk2tDa/rsZ+ok+TtdDI3CJ X-Received: by 2002:a17:906:4801:: with SMTP id w1mr74899ejq.475.1616424671957; Mon, 22 Mar 2021 07:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616424671; cv=none; d=google.com; s=arc-20160816; b=RBN44LzpVVkcJtzHxTPEaX/mu8YY3atBIZmM20IRQZvxuadmY6Se7luFtmcPZj4ttN KtyCsZBs8ulcEVw21Utp/BttYAAlyotcEynkvmFzExMgjm6ttGsjhWyMPK3IMqQOIIE7 4bZ/JTkkRJOnpEPPAj97plmhXRiN+tFc66abiFwLy7Z5JqoYGrMfSbzxQJu5S5jDTDVd tJNwxQdygM2NMKb6p4q18YjloTzETlaWB/CTUhbRt5PREytGAhwzLXvHKD09oj+7I380 JpSN9QOvA64DRRXdji9hONXYA9a0gtmNnJWkRbr7n+jt99OeMx2vz8E8/O+3LdGpv9fV g5Uw== 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=x6qJFmrRmo+A/zQ6acZhtdTaGmPcCRyZR0dHDtHaLu4=; b=Ka1Oj/Um8aHJ6NCJUWMOGSWufHDig/YcpFFN7j7FSBVDeHKnKppnOIZcoJ8A/9ERVu vUBSAgOzCjRsDsl58ywAAohQPR0sXBfCLd5uy8Ss1vGbb/RE7p1vfaeaj9PF8OF4BMo9 PcmXM1NC6e2/Q41ojxyvJtEYo7xE1ky3e4YdVlhZA/w9Sd/3w0M0cKGMZzva461p89QA u3mALCWDAWeIrXK5fmAaz1h2ZF0DrEEIlFXRu7BtGkOMTwBw7o9qPxaygdFTbRF4184u OWgMhNPxn2c/1LdIdMtohsyIkhqMR1C9u789wCKwTC6aN0LEdJZ8q3o56PAw2LpmSn3/ ttLg== 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 f11si11126043edw.236.2021.03.22.07.50.48; Mon, 22 Mar 2021 07:51:11 -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 S231284AbhCVOtu (ORCPT + 99 others); Mon, 22 Mar 2021 10:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230300AbhCVOs6 (ORCPT ); Mon, 22 Mar 2021 10:48:58 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A05E8C0613E9 for ; Mon, 22 Mar 2021 07:48:54 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:250b:f16c:c5e2:505d]) by albert.telenet-ops.be with bizsmtp id jSot2400d2HDxaV06Sot7k; Mon, 22 Mar 2021 15:48:53 +0100 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 1lOLrQ-009ZWL-MF; Mon, 22 Mar 2021 15:48:52 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lOLrP-004T6K-Ol; Mon, 22 Mar 2021 15:48:51 +0100 From: Geert Uytterhoeven To: Robin van der Gracht , Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 10/17] auxdisplay: ht16k33: Remove unneeded error check in keypad probe() Date: Mon, 22 Mar 2021 15:48:41 +0100 Message-Id: <20210322144848.1065067-11-geert@linux-m68k.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210322144848.1065067-1-geert@linux-m68k.org> References: <20210322144848.1065067-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 --- 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, -- 2.25.1