Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp809134pxj; Fri, 7 May 2021 22:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHMIdnrnp+dxLDnk7xXISQh4oQxC3jyX/KLj9Pyb+7bFnsl0OLejT/boGdZ/4JHSl/LEyX X-Received: by 2002:a62:ae19:0:b029:290:3d02:687c with SMTP id q25-20020a62ae190000b02902903d02687cmr14098112pff.57.1620452657327; Fri, 07 May 2021 22:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620452657; cv=none; d=google.com; s=arc-20160816; b=zu2+qnluYMzPIFhsYm5q4iZ6jLLSr83VTQxkmdPfhdDW1Ewf9LFGcny8lrVsdw+1S5 MSFsUkmJJVs/z7o/D0VAKFoN5jMC4zqW81tmzW/aDgbrs8YfxDgVnwIhiRNXn40s6L1H ZObrwlSHwJChTGn55cHYsjuwc17wqAYzIOFtPFoQfpg/iyNFj5AvPE2iuDOQPxRltiA+ gVwb0SwqCPfXNWJwAGvGhlGz+jCIiMSNgHDpF9qaJcTKr5JtefuKZn4nH0zcKFV9ice1 +IWFFoEeLLsNlQ4G1H/hI6mjmmuh7JTYNgLyM2yRkIBCUeJ1SyhShiFvpOvYQmO2OiXH kD7Q== 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 :message-id:date:subject:cc:to:from; bh=zEo8B6BSNLIP52me10ZBqXB0VBIs8pFFA2tAsixtIvI=; b=K+jQzHtg6I/6Jm54tr7LifdsFQYue4KUYLdkUX8QUjjdCW+tfZd36YQG6iWW/hEJod Uo1bgDZA37orT0+aEg/5UdoNmix9OjQVg8aLyKI/nGQfO8sXSSjhm0E9cnPDBIYmSOrP PlTozYpTrW1koDpYfhvXViGfbXs44NUIKqDTNKb6fI8mxPBAyA/2PXKw1MHCEKbHo8Rs J4LM3Q/Th9W1kQA1M59spc4ruWRWi8cg21t+4zEcjR4RUMqcZ9Dh/w+l86uXmq+xzeat n5nXPdFofK+zwphhnE4OflKpbb4nfwgU5dJEqlT+R+1SddvNUlzVD8h2GXZr0yAfytxQ 3TUA== 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 t12si2833277plg.423.2021.05.07.22.44.04; Fri, 07 May 2021 22:44:17 -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 S229473AbhEHFof (ORCPT + 99 others); Sat, 8 May 2021 01:44:35 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:22107 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhEHFoe (ORCPT ); Sat, 8 May 2021 01:44:34 -0400 Received: from localhost.localdomain ([86.243.172.93]) by mwinf5d66 with ME id 25jW2500R21Fzsu035jXbf; Sat, 08 May 2021 07:43:32 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 08 May 2021 07:43:32 +0200 X-ME-IP: 86.243.172.93 From: Christophe JAILLET To: cw00.choi@samsung.com, krzysztof.kozlowski@canonical.com, b.zolnierkie@samsung.com, a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] rtc: max77686: Remove some dead code Date: Sat, 8 May 2021 07:43:28 +0200 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'ret' is known to be an error pointer here, so it can't be 0. Remove this dead code. Signed-off-by: Christophe JAILLET --- drivers/rtc/rtc-max77686.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c index d51cc12114cb..ce089ed934ad 100644 --- a/drivers/rtc/rtc-max77686.c +++ b/drivers/rtc/rtc-max77686.c @@ -764,8 +764,6 @@ static int max77686_rtc_probe(struct platform_device *pdev) if (IS_ERR(info->rtc_dev)) { ret = PTR_ERR(info->rtc_dev); dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); - if (ret == 0) - ret = -EINVAL; goto err_rtc; } -- 2.30.2