Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4624119iob; Sun, 8 May 2022 19:38:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySssiAZVbIigA6Q7pGJgSL9eBEICPQwzPwfpkZCn6KeLiwNVjIZYAJR5BmXy0CLBiHXKc+ X-Received: by 2002:a65:528a:0:b0:3c6:d2e6:e3a0 with SMTP id y10-20020a65528a000000b003c6d2e6e3a0mr696574pgp.159.1652063881354; Sun, 08 May 2022 19:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652063881; cv=none; d=google.com; s=arc-20160816; b=dWWKkuvYN5OdgHL0cVxUy7239jpkn9aevmqjs/i/xMckipOeCC+d45wAFCiesziu2H lY1qEwAitL7XSqKqrgjjIJObqPGuStZI3qE8UvqcQNhpwX7Q1BqZ9W7iiowN/QzoiQza iLX/WJQgXTh6w7nRRHZvxULmclLhBbZSP3FxEt41y0FTSoDPiJ+WvSXPxnH64o+G2Oj2 rR9mCygt4HTxtUw2wNzcJ8xUf7L+W6z8CI9Lw/Cf8ABXRq0Zi5JNNGmX+DLo08tjjI0B DcXjZjpdyp+aK8gYBW5ntZhKIPPEeuxGbQIBKumoCG0C/BrL6X8+mKLlpIq1HPGbuMR4 sqVw== 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=D1b0HeUhFBeNKN2FYsIQkaN3rxaQMWP2KFVM4rsp4jc=; b=Z7PNuY/jXk5treWB2tWlr/N+S8vTflUKCdFEoMLj1ctUF2Rr/niqkc0bAxExRq0LAk oWD+zmGnoRMp9Zl8C9WAyljaBBV7ZysyvJAucS1qQsEp0Fb/e7+Dc0bxKOnI0+eigPM+ Tj5i/aQpAQWbEvlHr5wu5CwIE/EBsmbRrXVcQGMcGdW0lThumeKhGUmqvFEQFN2d6Vkn 49KY3kBdqHJhg0xxiqZ1hTvz56aANp+JKRrr+NcEghFoK9XH6Pxsmf5J13bON1rn+kqI cOqFJtPFv3KSRdYlxd3Xkvt+y0Lr3pYXqT+OUgaAV08wU8QvCwPhBe8Ik8PjWg5LGRZW iHlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UZ0DrSh8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t4-20020a056a0021c400b0051050f27cccsi12931453pfj.302.2022.05.08.19.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:38:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UZ0DrSh8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 47E1C3C4A5; Sun, 8 May 2022 19:37:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238834AbiEEC2L (ORCPT + 99 others); Wed, 4 May 2022 22:28:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238814AbiEEC2I (ORCPT ); Wed, 4 May 2022 22:28:08 -0400 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E184C787 for ; Wed, 4 May 2022 19:24:30 -0700 (PDT) Received: by mail-oo1-xc31.google.com with SMTP id y22-20020a4acb96000000b0035eb01f5b65so506831ooq.5 for ; Wed, 04 May 2022 19:24:30 -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=D1b0HeUhFBeNKN2FYsIQkaN3rxaQMWP2KFVM4rsp4jc=; b=UZ0DrSh8fY2ykyDbM3LBeIwSBJ9QEY3Kgh7jT+0AADbpCXCf2WJxAxNfPXedRrbY3d XpibHEhpyIk1HyqalJ5MvHjYDejYiDn+T0nabIGwcCDckEEmWoWlWRV31Tk0P3eM4pSa 0pfKhKWMAPSSaHkdeX7yX+1vOKWw8jvvWTjQThmO01WHVT77x4L0mKv8qJ8s2f1l5W37 U5BlcO0OvQMGPaG6zrL/dr4pUIqOKmJHyHQ8w6fSgfeQy/wus68WWhUwYmRDA1y4tSFT eeEQaYOliZjS12LRzktPizxhlS8/mVvDOu4nY3/7VWQ9uA+gFvw4+f0C1EvGbmObs8qu uKBg== 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=D1b0HeUhFBeNKN2FYsIQkaN3rxaQMWP2KFVM4rsp4jc=; b=KZiYe6eV6yKTFGzIZiDwntjX+XggZ9KOuI+/FTeYJoKtRpLLvR1Fzpc+nNVlzpU7+s WkPpdbhjOdHpB3iI6Z2ZpuUT9iiOBp49p5TRUFgjwQ+ocph8/h/SBCVW3QBV0as2W8Qc G7dJVkjyf2OyZqOLefczJVlqjlwNeHZAjxJNP/ml3nKs0C9WOVd7AfGhKr/neSlYlsb/ 65c99F+002/iUdDgEjRJYXCw9tZmmclu596T3HDzp5hK5fMnA/0mPcCBSjZ612KCehGT mWuaFsxTxKVJzojUyHsTrZoavObkpyucq3eX3ZhsuJal6xV5ONCYHUUpXejEN3xCsIhF KCZQ== X-Gm-Message-State: AOAM53163sAX8CGtJIbugObPJeZv3Ai4z2PcYBeBOHvFGB3u9OhLtOnS 50ZgGBfOe77aekesIZyKpWb2eKoYlYGhqxiU6M4= X-Received: by 2002:a4a:e2ca:0:b0:35e:b623:8799 with SMTP id l10-20020a4ae2ca000000b0035eb6238799mr8437220oot.68.1651717470097; Wed, 04 May 2022 19:24:30 -0700 (PDT) MIME-Version: 1.0 References: <20220505022239.58334-1-chi.minghao@zte.com.cn> In-Reply-To: <20220505022239.58334-1-chi.minghao@zte.com.cn> From: Alex Deucher Date: Wed, 4 May 2022 22:24:18 -0400 Message-ID: Subject: Re: [PATCH] drm/amdgpu: simplify the return expression of vega10_ih_hw_init() To: CGEL Cc: "Deucher, Alexander" , Dave Airlie , "Kuehling, Felix" , xinhui pan , LKML , amd-gfx list , Zeal Robot , Maling list - DRI developers , Christian Koenig , Minghao Chi Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Applied. Thanks! Alex On Wed, May 4, 2022 at 10:22 PM wrote: > > From: Minghao Chi > > Simplify the return expression. > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi > --- > drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c > index 3070466f54e1..cdd599a08125 100644 > --- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c > +++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c > @@ -521,14 +521,9 @@ static int vega10_ih_sw_fini(void *handle) > > static int vega10_ih_hw_init(void *handle) > { > - int r; > struct amdgpu_device *adev = (struct amdgpu_device *)handle; > > - r = vega10_ih_irq_init(adev); > - if (r) > - return r; > - > - return 0; > + return vega10_ih_irq_init(adev); > } > > static int vega10_ih_hw_fini(void *handle) > -- > 2.25.1 > >