Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2952923pxk; Mon, 21 Sep 2020 01:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdofewsEUDYEzzwKvJVF6k1gdCv0kO7b2bHbxJJx06F3obCay6bVxw/FPfSFUJQifqXsNs X-Received: by 2002:a17:907:40c1:: with SMTP id nv1mr50456407ejb.318.1600675486534; Mon, 21 Sep 2020 01:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675486; cv=none; d=google.com; s=arc-20160816; b=x3DLKs1kJ0VGActU+gx+JdEh9bT7GEyjwglZRhuLW1Nb+DAAUmnXucs9GGUf00ISA6 fZQ0N0qOFLrObEYEQGefF01T+88ZzGi3RbvKwOrmYQU0788z7I9jOwuSwb3uyt/YSbr/ 0YRa3Tt2g+rE0aJQfD/8/eOJ5bQysGOqvRUbavO+ZrDG6WHBmCUsBINvrJch7qd7ehLN 5R/QtWN3HIdZ/nGBQ4ojt3MZAeYEDOBXKyw3tR6t/9y/r57Mqf5kTepI0eXrPKl5Yb4Q Bsfi9zCCEaodBZsdvZK4njfOmV+k3iMUiaKuGRENUjzZHZM51DZAZKLOy5lLQKrDNoQB 745A== 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=S4mGxJXdgBenqENDVjAAqT/ysGuBVZ2+PtSFPwrCJHU=; b=FdPEtTjXxltSSAJ4+bsz3BbsfyKQWpye/ie3/zF51QBB7TmGXd8cstxT7BQxzLNwwi y9UTt4aGZhp2J5gUn+zIZtXShe7ldqNi4Sg5uEyYKjkb5MmCkZd4z97THTM0/4ATa7w3 D63MqyooAF78RR9NsqC9+VNFgih+hoE65+UpRXKoR88wgY+xPUWq30SfGged8+OgbD12 TSGyQcz5YhHLDD60jaGjhH29h1OyR7lc+pcZxYe5uJjOUFsGXU4Lq3qRS3oxdKGcFS3J obQzIjT5cHajzmKq9Y1TxtjPpgexQlLtb+ugEpfb2FJ84O/gnYYN5b6Xv1p3CaxYFXP7 VIpg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p9si7569498ejx.463.2020.09.21.01.04.24; Mon, 21 Sep 2020 01:04:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726917AbgIUICb (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:31 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13785 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726416AbgIUICO (ORCPT ); Mon, 21 Sep 2020 04:02:14 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 72A3E3796A17AE9AF00C; Mon, 21 Sep 2020 16:02:11 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:05 +0800 From: Liu Shixin To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter CC: , , , Liu Shixin Subject: [PATCH -next] drm/amdgpu/gmc9: simplify the return expression of gmc_v9_0_suspend Date: Mon, 21 Sep 2020 16:24:29 +0800 Message-ID: <20200921082429.2591146-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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