Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1871708pxf; Fri, 12 Mar 2021 23:51:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKDZbUhRAXLwFLp3OmTTYPsRAE+Lgek5y0lzP3MaF7WrBUAyhbj3Gf4wXwH+t/mvczllEI X-Received: by 2002:a17:906:1712:: with SMTP id c18mr12940620eje.417.1615621899351; Fri, 12 Mar 2021 23:51:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615621899; cv=none; d=google.com; s=arc-20160816; b=UzUo98StyrXmLeZmRku/AvXt3ha8K0+89tCc/6MmDAecbNN4JVbkO2P5v0zPQz1YLA 4XzMgUgAW7eNXsw0fWJOkQmoS4U3r7OziAmmElvXF3F5TtYYAfdMkc5hnlDwYgwNkYCN lKu4QTBd2QglQbjwQpwOYPSvzrrSjc8KjHPk2YGka67zHyxIWWmvg0/DFPqVoaALpTC5 RLrL5PCtnC5Etx7bsoclnL4O9OeKZjrFoopakmNBylGZBCUD9bYNAMV2JWgsQbKHfdMV rYgaefftjvj15xfnm9oEyW+Yfo/qnk33vhDeg+uzseo2RRSxDPcwi730YTtRCkt55gB2 l9sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=BetQP3L3wuDz8NOwif5WbwLaCB9EvvruiVr6gNKWdTo=; b=IcMQ3cH5PMz0BsVd8FWFtiW4D3kGma7pwX9gMrB0Hm17b0EQ5zNod9ag4bhNduP3RZ 9CIY5qk9Woov7mtdINQ6t9yNy1zHQwDuYCRjiruOfKaOHCuaFc0NnL9G7cW+MGPDLFyn nmpNlrlv9/WBcg+7i5jdK8q5CHfJ9W8fY5uK+aq7lO/jvI5ZpET92AOqDgiT75Ze9/l3 B6FJiPvQ+0CBz6MGi7qcqmUSTK1r93ax9DqV9UZsNgmfanVd53Pg5tlqaWyZdtObwbR1 4BaBu3JqUqmCPcuq8sjRVwelQHxAFH64dbQq7aKBgiCjcxxCyqMhNDbapug7Hu8QBpOK 6Oyw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t19si5668174ejx.42.2021.03.12.23.51.15; Fri, 12 Mar 2021 23:51:39 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232955AbhCMHsi (ORCPT + 99 others); Sat, 13 Mar 2021 02:48:38 -0500 Received: from mail-m17635.qiye.163.com ([59.111.176.35]:34722 "EHLO mail-m17635.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233311AbhCMHsI (ORCPT ); Sat, 13 Mar 2021 02:48:08 -0500 Received: from vivo-HP-ProDesk-680-G4-PCI-MT.vivo.xyz (unknown [58.251.74.231]) by mail-m17635.qiye.163.com (Hmail) with ESMTPA id C002F40011C; Sat, 13 Mar 2021 15:48:06 +0800 (CST) From: Wang Qing To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Wang Qing Subject: [PATCH] gpu: drm: mediatek: delete redundant printing of return value Date: Sat, 13 Mar 2021 15:48:02 +0800 Message-Id: <1615621683-2122-1-git-send-email-wangqing@vivo.com> X-Mailer: git-send-email 2.7.4 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZHRpOGh8dGElDGRlJVkpNSk5NSUpNQ0xKQ0pVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hNSlVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MRw6Ixw5Lz8POVELLR0KCSMd MEoKCTdVSlVKTUpOTUlKTUNMTk9NVTMWGhIXVQwaFRwKEhUcOw0SDRRVGBQWRVlXWRILWUFZTkNV SU5KVUxPVUlISllXWQgBWUFJS0hNNwY+ X-HM-Tid: 0a782a8e873ed991kuwsc002f40011c Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/gpu/drm/mediatek/mtk_dpi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index b05f900..0ac4962 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -751,10 +751,8 @@ static int mtk_dpi_probe(struct platform_device *pdev) } dpi->irq = platform_get_irq(pdev, 0); - if (dpi->irq <= 0) { - dev_err(dev, "Failed to get irq: %d\n", dpi->irq); + if (dpi->irq <= 0) return -EINVAL; - } ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0, NULL, &dpi->next_bridge); -- 2.7.4