Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp836865rwb; Wed, 26 Jul 2023 03:50:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGnUJZwUj1RiO2klul5IrEx2CGLI5FjTs+bfh87Hd9n5jYZ7CFvZiNA/vjZNNUV/kou8VR6 X-Received: by 2002:a17:902:8d85:b0:1b6:8a99:4979 with SMTP id v5-20020a1709028d8500b001b68a994979mr1287974plo.22.1690368654068; Wed, 26 Jul 2023 03:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690368654; cv=none; d=google.com; s=arc-20160816; b=MIYUqNrrehQ8Z2N3Qo5+GOaBVhHLF0dRsEjcqJA4VSM336f7g5c6RdC+wwwO7hKLkC i98AxxEgJz6YT8U/Mlb2vUY1LQPH3aJ7o+MZQcUrcheQM6r0ysbnRxHspdgDAc4+rtSs ojDS6hE5vMISzrtf1d0iU20elgzv3HOOr4QVyCGUqqRxawfL7EWrwvNewzn3NFtIrTne K0OKnP48SLdTMTF0MeuUZ/yT9QB1HYyI9gDOd4Ajs2A3U5nTJRKezfPjZ1XOvNpDvnss J7/DQsUvJSmdIBqtqfquWL9to8YcvqRaSW8GQ2BKZTogPDnFMy6zZmzq9bKQHJT2ay0s yjCQ== 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=FqOjlGUh1C5dh75jl8BGy0UQhVsSyaHg6wFXz1FwE7E=; fh=FqzsA6riRZGIkGyljgDinxZs3HfpUBOvPASae+Tiprw=; b=Q1A0cW5EvPBnerxeCDT628SNWzhuJyPzYX3NBELYq8PT1NpqXH7U7tTwPtStisfVDp V3ad/4lCE9vwm+8gqV0IYapLV+/oFeE02eQR+TXrQe459u0YHgTrDGTxN4SDQ9LPEkuw l6ZDnv3cCknw4uWG7NCB7g7n9HJc7u8Hf6JFxyblqRFKY/nrz5URi6Z75Kjsj+EshoBg 9rWnOHE4KaF1nqqXUcsGdEXT3QtYA/cOh1H5C1lSnbeLEx6JEriht8r6aHzWjb97200C ZVYxdbrk4OcqDqetg3dD/zCpFP9GQhHNPogCnPoT3QG73F7F8QIK5i8/3Yn3VJPi/8Vc N1UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a170902ea1100b001b9e8ebe5a0si13816705plg.613.2023.07.26.03.50.40; Wed, 26 Jul 2023 03:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233670AbjGZJl5 (ORCPT + 99 others); Wed, 26 Jul 2023 05:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233663AbjGZJls (ORCPT ); Wed, 26 Jul 2023 05:41:48 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04164DB; Wed, 26 Jul 2023 02:41:46 -0700 (PDT) Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R9pjn4CMhzNmZk; Wed, 26 Jul 2023 17:38:21 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 26 Jul 2023 17:41:43 +0800 From: Ruan Jinjie To: , , , , , , CC: Subject: [PATCH -next] i2c: s3c2410: Remove redundant dev_err() Date: Wed, 26 Jul 2023 17:42:26 +0000 Message-ID: <20230726174226.2480552-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.73] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to call the dev_err() function directly to print a custom message when handling an error from platform_get_irq() function as it is going to display an appropriate error message in case of a failure. Signed-off-by: Ruan Jinjie --- drivers/i2c/busses/i2c-s3c2410.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 28f0e5c64f32..703a43446eaa 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -1076,7 +1076,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) if (!(i2c->quirks & QUIRK_POLL)) { i2c->irq = ret = platform_get_irq(pdev, 0); if (ret < 0) { - dev_err(&pdev->dev, "cannot find IRQ\n"); clk_unprepare(i2c->clk); return ret; } -- 2.34.1