Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3397573pxk; Mon, 21 Sep 2020 12:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdu0CVXGAs9JLz5q/3FPyZ9zIVDHT61qxlXEu3MRNvWTt7p16XeT9s/rIupAN7dKgf0Nw0 X-Received: by 2002:a17:906:9353:: with SMTP id p19mr1022217ejw.403.1600716921242; Mon, 21 Sep 2020 12:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600716921; cv=none; d=google.com; s=arc-20160816; b=eF53u5kktej6NToxm1XJWGAnkE1wzk8c06gi7c5oe2LniM69KivOz57xmzvwoxw6P5 pJ4ngA2vh8Iqj3ofB6V3aSzCkbLWDyMMVyhaxLRrSZzh4ndYKhN9QtnwQXzfZotPGlIi qMeqOdXQ5BRJOPt/UNvf8K0Go0Dg4C/KtTwDn0dJTdENJgcrFAsNNUYR5GiXDCcsRjlb j789Xu0GlgbMEs2G439RcbpmH4gIfpWAGygeVPQGHQSmkNL14CX8rPF79h3lxpEUKUT+ BZ2gB6PmAKYNFtzKtJaeI9JRbPWse+YZLa2199I6CBWRx8MI7CwQFr6CGqvyDwOADnek kc0A== 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=YH5llJy+UZ7IF1xl6CJ1Evb+uKpkOIo3lUNcZYyahmE=; b=idZ1c5O7K0IOppqKrBAKBhAdXAkVuO6FUwvaYXZbfgakKKAEv02miuxzCdBRdF6Ulh xKBoJXrNwlwG39+OeFhAf1RC/gBrd9I81ZbJRz0bEHna8H5IMV1+d/dHFHHk3QWKcHHu 1ib2wcxbXAnmeFYFuYLXh4lgitK/AMHfOqumD4R2HnFFtAC5jSFEnpalRqNQCxWpnR7t BsYpaZMgoMhnvshBClnm2htS8Mw6S3hOqzYVe9XA4VUvX0ymM/z+7DEjYWaajperC57J BHlSRtNqE9CXqGeb1hZVO5hh9XnqZ6ofPunHm4dGTZKT9880md312YDQb2I+ZZ0zPUb9 MQAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sywkcLG2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x23si8353926ejb.588.2020.09.21.12.34.58; Mon, 21 Sep 2020 12:35:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sywkcLG2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727858AbgIUTbx (ORCPT + 99 others); Mon, 21 Sep 2020 15:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726471AbgIUTbx (ORCPT ); Mon, 21 Sep 2020 15:31:53 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46F54C061755 for ; Mon, 21 Sep 2020 12:31:53 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id e17so622368wme.0 for ; Mon, 21 Sep 2020 12:31:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YH5llJy+UZ7IF1xl6CJ1Evb+uKpkOIo3lUNcZYyahmE=; b=sywkcLG2yw+k66v57gAmah0RShts+EYALdBeuGD6MBvpHrwmpmwm1OOL9QFjZoEB20 +/D+/pNVMA1cz3xdYCTVtC93YYPovdOZaNWW66pMtghWhgxgIQG92LtzGPRAO/2FKZ89 4yyMRHhmaRgcVXFSrBW4SMlNYEUoTrRakDDryjwUDfyGyHQmrCAgcxnj6xf4TZcgUVe+ szuq+jU3g6/3jql+Y3nemZjnvPJ1opW4WgzndIImu87rQBmoOSDEJIcNlJI6kBOJWIzc KcvOe6i7DKCLcZbmDT3UbfcMY6jmChbsFUWSzlhUQCog0uvBMMkRAm9rikrnyBSwgCbU wTSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YH5llJy+UZ7IF1xl6CJ1Evb+uKpkOIo3lUNcZYyahmE=; b=COtxdpMUycVfuXRBIrS4pMbWn3hXm7RO8PYsbwA3KPqe5ZGzZ4IrTDcoUJfmcNe6CZ erjZ6YMcDXiDBPO6+AxPJjOnRIMt4YmzPU4BMwfg/+vUnx3XPtfi7TMl/A3QeuZuFrmi IxCuTsGtEzhFh4HpzZp8BvkdbQHw4XjhL1HSkopDRghSWFdTFy6bqHKsgQwp9Mv2+Cjq o1RcVx6L0zivRp80kJ4wOHfnlPOyfBykVs+ODeAlEeiiKoN+mlOe/FY1svZJjiGPKEmj 7Nbj6jz8BJXutRxKRoBzaX46qp6HDaFVnAieAq3JQMsbwthvOWPsCd2LwnMYkH/U7Sry yqmg== X-Gm-Message-State: AOAM531D+xg5r8Tl2GGkAJghQxgbFWtnfOxYuzpyF98/j+/dbwF8UFMf 5FIxGsA14qGOg4W3sBsGAG5gWyz303Iti/AgAes= X-Received: by 2002:a7b:c090:: with SMTP id r16mr912217wmh.56.1600716711938; Mon, 21 Sep 2020 12:31:51 -0700 (PDT) MIME-Version: 1.0 References: <20200921082429.2591146-1-liushixin2@huawei.com> In-Reply-To: <20200921082429.2591146-1-liushixin2@huawei.com> From: Alex Deucher Date: Mon, 21 Sep 2020 15:31:41 -0400 Message-ID: Subject: Re: [PATCH -next] drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend To: Liu Shixin Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , Maling list - DRI developers , amd-gfx list , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Mon, Sep 21, 2020 at 9:14 AM Liu Shixin wrote: > > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- > drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c > index 5400cac02087..cb9e9e5afa5a 100644 > --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c > +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c > @@ -1683,14 +1683,9 @@ static int gmc_v9_0_hw_fini(void *handle) > > static int gmc_v9_0_suspend(void *handle) > { > - int r; > struct amdgpu_device *adev = (struct amdgpu_device *)handle; > > - r = gmc_v9_0_hw_fini(adev); > - if (r) > - return r; > - > - return 0; > + return gmc_v9_0_hw_fini(adev); > } > > static int gmc_v9_0_resume(void *handle) > -- > 2.25.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx