Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2466857pxj; Sat, 19 Jun 2021 13:15:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHqlZoWgnog1xazXjBX8orcI+Y3FcpQGL4+oArULgyzYZ+J3WUs/BdXk2CXysTJD2vrwnb X-Received: by 2002:a50:aa9a:: with SMTP id q26mr4159619edc.291.1624133730120; Sat, 19 Jun 2021 13:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624133730; cv=none; d=google.com; s=arc-20160816; b=OJQLAaMFmsoZ1KWMbBO5ruG8zHI9R1PyiSn7J6wImZetZb9ApnzBTmH0+9AsNcSZ+h u3oLWrMBFT4IsyqQooqPbZtnB2scItj620WX4v9f91MUe8EZw0IR2vVSEDhvH+lK6rDD 64NSFtQHnxdTHMuDhgdL3nsYws6IzG2RwGT8SLNiqkCX/cZsmw5HpqCynHsFjXFCR8OT 2KgaV13PWozoZza+Cz/R0zzOjnZcxmIiE5IUVQTonf2b/GFuquDUW3F9OFeB0kQ4axA7 q7mCrgeyg2R4rpB1Wd9ybXiHQs0T+yrKvmGiQ0UGO6wqlDq2gnW2JYjhVCB5d5d6QUZz tNyw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CVj/3Dl/OhwruS8V8xLzx1CekV7XbwZKp+qh38LDL3I=; b=oPuVVeyYKIzieBcJhhkO2N2c6mcuWQuMXohF0D2p6foyZ6IrfG8OT5e4IRxaUjGrAd Y2g+XwRLnszXYqrheN8mFZdIcx3ULsOTxG8ieEKm/s+bC3iOyPdaCIbGZ1jfJD6N3xWI NDZPqwvOzzH411IGpvGSje+NSgHXfvWAFDwsA0i8X8rwAA/ERjXx01OlGvILrScZq67b oEPXEwYk2pV+2n6Zd0FhLsPoPUsIogokFO4qfDFFMycElfCtfyVzEL14FrAS+VHUNNwY w5KxbKz80ABqWGTdT4BRN4HB4HPNzlVAYfL/A/nAig3aqtoId3PepVG7QHvHeZdU53ep 6dxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@vivo.com header.s=default header.b=ngj+BTKO; 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 b7si175912ejl.450.2021.06.19.13.15.08; Sat, 19 Jun 2021 13:15:30 -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=temperror (no key for signature) header.i=@vivo.com header.s=default header.b=ngj+BTKO; 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 S234085AbhFSGq3 (ORCPT + 99 others); Sat, 19 Jun 2021 02:46:29 -0400 Received: from mail-m17639.qiye.163.com ([59.111.176.39]:14426 "EHLO mail-m17639.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234029AbhFSGqY (ORCPT ); Sat, 19 Jun 2021 02:46:24 -0400 DKIM-Signature: a=rsa-sha256; b=ngj+BTKOYbgYfs5VK1A8xTf6W1mXZIK+b8jn1iD8g6xTy2sN09M4lg2enVXi6xWLps4hx22ep5RUdZmisarR2aH4DqnaQyYYp/v68BrC6YER37DzEgnxXnlehABDg704ljIpz39JLBFSpXe3orkJcpUSrIU013TgfcguD0PnIMg=; s=default; c=relaxed/relaxed; d=vivo.com; v=1; bh=CVj/3Dl/OhwruS8V8xLzx1CekV7XbwZKp+qh38LDL3I=; h=date:mime-version:subject:message-id:from; Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m17639.qiye.163.com (Hmail) with ESMTPA id B7D2638016B; Sat, 19 Jun 2021 14:44:12 +0800 (CST) From: Bernard Zhao To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Bernard Zhao Subject: [PATCH 3/4] drm/radeon: remove meaningless if(r) check code Date: Fri, 18 Jun 2021 23:43:47 -0700 Message-Id: <20210619064349.26676-4-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210619064349.26676-1-bernard@vivo.com> References: <20210619064349.26676-1-bernard@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQkhOGlYYGB1NQk0fQk0eQxlVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mgg6DTo4PD8KFUILDRVDTS5W ETcwFE9VSlVKTUlPS0NOS05ISk1OVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFPSU9LNwY+ X-HM-Tid: 0a7a23033dc6d994kuwsb7d2638016b Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Function radeon_fence_driver_init always returns success, remove meaningless if(r) check code. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/radeon/rs400.c | 4 +--- drivers/gpu/drm/radeon/rs600.c | 4 +--- drivers/gpu/drm/radeon/rs690.c | 4 +--- drivers/gpu/drm/radeon/rv515.c | 4 +--- drivers/gpu/drm/radeon/rv770.c | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c index 8423bcc3302b..6383f7a34bd8 100644 --- a/drivers/gpu/drm/radeon/rs400.c +++ b/drivers/gpu/drm/radeon/rs400.c @@ -555,9 +555,7 @@ int rs400_init(struct radeon_device *rdev) /* initialize memory controller */ rs400_mc_init(rdev); /* Fence driver */ - r = radeon_fence_driver_init(rdev); - if (r) - return r; + radeon_fence_driver_init(rdev); /* Memory manager */ r = radeon_bo_init(rdev); if (r) diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index 5bf26058eec0..b2d22e25eee1 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c @@ -1132,9 +1132,7 @@ int rs600_init(struct radeon_device *rdev) rs600_mc_init(rdev); r100_debugfs_rbbm_init(rdev); /* Fence driver */ - r = radeon_fence_driver_init(rdev); - if (r) - return r; + radeon_fence_driver_init(rdev); /* Memory manager */ r = radeon_bo_init(rdev); if (r) diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c index 7bc302a89232..14fb0819b8c1 100644 --- a/drivers/gpu/drm/radeon/rs690.c +++ b/drivers/gpu/drm/radeon/rs690.c @@ -850,9 +850,7 @@ int rs690_init(struct radeon_device *rdev) rs690_mc_init(rdev); rv515_debugfs(rdev); /* Fence driver */ - r = radeon_fence_driver_init(rdev); - if (r) - return r; + radeon_fence_driver_init(rdev); /* Memory manager */ r = radeon_bo_init(rdev); if (r) diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c index 46a53dd38079..63fb06e8e2d7 100644 --- a/drivers/gpu/drm/radeon/rv515.c +++ b/drivers/gpu/drm/radeon/rv515.c @@ -648,9 +648,7 @@ int rv515_init(struct radeon_device *rdev) rv515_mc_init(rdev); rv515_debugfs(rdev); /* Fence driver */ - r = radeon_fence_driver_init(rdev); - if (r) - return r; + radeon_fence_driver_init(rdev); /* Memory manager */ r = radeon_bo_init(rdev); if (r) diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 88e29ebaad46..74499307285b 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c @@ -1941,9 +1941,7 @@ int rv770_init(struct radeon_device *rdev) /* Initialize clocks */ radeon_get_clock_info(rdev->ddev); /* Fence driver */ - r = radeon_fence_driver_init(rdev); - if (r) - return r; + radeon_fence_driver_init(rdev); /* initialize AGP */ if (rdev->flags & RADEON_IS_AGP) { r = radeon_agp_init(rdev); -- 2.31.0