Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1798353iog; Sat, 25 Jun 2022 21:01:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sfbWkKaiX/+688gstSqNR3Tr26r1sRRwNvwd0/9ZNVkARGfEi0Vuv8b/JNNsOao9afEX1h X-Received: by 2002:a17:906:a219:b0:6e4:86a3:44ea with SMTP id r25-20020a170906a21900b006e486a344eamr6680128ejy.385.1656216117721; Sat, 25 Jun 2022 21:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656216117; cv=none; d=google.com; s=arc-20160816; b=1KcFidN/+xuiQb8jNVFOfhiK/C2KyBxge3UiJ/BoRRcKoD9xLiIjVl8XGaq+cRtThU 2FN2KPR56dW+Mq3XskhSLCYJwaqemUXDIA6umWbA8k4m62PdIQLZCFVlITJocacU8lC7 b8kOA8A80vy0b3frGjsB0zHF8EgcW3bkcD0RAdFEIHib6tT99+L/KFfSVxrJi6AusN3T tug5dv7XMhSMmIOXlxd44EzWEr7uRQxdkhS9j6ObhgKiD9RVGGsB6rng4w4Y4L0YTOHK cuJVpbp+EKK0FVWArJDjT+FeAahQYBVGyL/i4NAdXMSjFHtG+GixuJ681p8tfqEXrm+7 pnew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NkR3yCBKwWtovdy4WYrNPg8uwIMMvvK6YP84XNpC5FM=; b=SjMSzX+N50fJHuwY3XQz4at6tUsyJ4Hfv4/nLRTuL7JgGPJ5VdZ6nAB80XqfTBTsNn 7/6gYErE3Sek+vYWB53638yBj1nvPxKZWkcOqYAfyFFewN1tChcScP2K7gMpgDRgRJ/F AnQDumKRx7VytJR5ATOIr8JOg4CZr3CNOhU6STWE/XIgXIAjZNJPnaL0J5LIJcb+HbYP j1SdtA/WWUZvR+UJHwMjbOvbRS8gBnFIAnHvQtEPuiGrhqEfG8cSQRsRdb/Ec1AuXTIB vGKjBQGuCgpbJNVd5Pb5a3vooOy4Ubm+zh6Tmf1devUaCp8VhhXYQNy0EIRbn62ehnH2 sekA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SxczHg72; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b0072697f3b5f1si1146884ejc.562.2022.06.25.21.01.26; Sat, 25 Jun 2022 21:01:57 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SxczHg72; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233799AbiFZDq3 (ORCPT + 99 others); Sat, 25 Jun 2022 23:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbiFZDq1 (ORCPT ); Sat, 25 Jun 2022 23:46:27 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0E1C1400F for ; Sat, 25 Jun 2022 20:46:26 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id k7so5389253plg.7 for ; Sat, 25 Jun 2022 20:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NkR3yCBKwWtovdy4WYrNPg8uwIMMvvK6YP84XNpC5FM=; b=SxczHg72LRcYZZeyIiUC/dUDmUHIX+IHXLm7tA8PS5Ey9h032Xo+Sjupj1Ocg4iqZF irqH8LnQAzeWHEXHcpEt3W4vm6vsGmG6DIjsthtOpO5exP/Br/dq49lYYjfJebUUYmZb KrL7/zML1qJP6xaQ6jcxtxWNVEI9A8LuBDc/ePcgtgxx4XW/t7xnoij0Z/kNkT2bqVj9 eMatniqkhJwtBACFarHU48BoitruvajYm4RApdoaFJy+smp6Ffyjf+yj/q1rmOhbfbzp uXy3tgH3cKC77M01KYi1TuygQFn3/FC5YO6Z4ZrGtitatyQwH9b+q52m3GKtVZ7h1nAc 8IuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NkR3yCBKwWtovdy4WYrNPg8uwIMMvvK6YP84XNpC5FM=; b=B3eORaahLu8gvZZuYm/Hko/xhp/yB1gSQfMlZ1H8gIfgdrxG7NYFfSgAWdQ0uf/Rn5 RT2lTOiN+xa9wxs8NF1Kem83K6AtV5cb4PdxEQumzyGg3Hg7wMP+1RNneG5J4jL66vKc 1SYHP3tCRB37dwwjo6BUNUArqB27UXjMP7boL57P2ZyfqqZVM+SnmP9zYpuBkllXFHSM lE8Ou2zHs+LneefKSiSXNSdMQcSwSyIKq3rMYNm4vAAMp5YfjuARJAxAcZLsfD0dbrN6 1SMRocFSmmLL0Bpa/zwBqZraMzml/iVQ0Zip4rnQ9cMd1P7qXReoQ2dMo/EUrpbPNlIP 2MPg== X-Gm-Message-State: AJIora+tQ7+QssLnM9wi5FwDEV94+6viNa5n7HxlyE1pgYphUEDM6TeL RraSe0Q9Q9MWrSNe/zQbLA2GRDCjXZ/fh4hPfJG5hBJo X-Received: by 2002:a17:902:e748:b0:16a:726e:7c9e with SMTP id p8-20020a170902e74800b0016a726e7c9emr7253919plf.12.1656215186453; Sat, 25 Jun 2022 20:46:26 -0700 (PDT) MIME-Version: 1.0 References: <20220624005036.37268-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220624005036.37268-1-yang.lee@linux.alibaba.com> From: Orson Zhai Date: Sun, 26 Jun 2022 11:46:15 +0800 Message-ID: Subject: Re: [PATCH -next] drm: Remove unnecessary print function dev_err() To: Yang Li Cc: airlied@linux.ie, Daniel Vetter , Baolin Wang , Lyra Zhang , dri-devel@lists.freedesktop.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Fri, Jun 24, 2022 at 8:50 AM Yang Li wrote: > > The print function dev_err() is redundant because platform_get_irq() > already prints an error. > > Eliminate the follow coccicheck warning: > ./drivers/gpu/drm/sprd/sprd_dpu.c:808:2-9: line 808 is redundant because platform_get_irq() already prints an error > > Signed-off-by: Yang Li Acked-by: Orson Zhai > --- > drivers/gpu/drm/sprd/sprd_dpu.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/sprd/sprd_dpu.c b/drivers/gpu/drm/sprd/sprd_dpu.c > index 3664089b6983..de4848dc0d22 100644 > --- a/drivers/gpu/drm/sprd/sprd_dpu.c > +++ b/drivers/gpu/drm/sprd/sprd_dpu.c > @@ -804,10 +804,8 @@ static int sprd_dpu_context_init(struct sprd_dpu *dpu, > } > > ctx->irq = platform_get_irq(pdev, 0); > - if (ctx->irq < 0) { > - dev_err(dev, "failed to get dpu irq\n"); > + if (ctx->irq < 0) > return ctx->irq; > - } > > /* disable and clear interrupts before register dpu IRQ. */ > writel(0x00, ctx->base + REG_DPU_INT_EN); > -- > 2.20.1.7.g153144c >