Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2466832pxj; Sat, 19 Jun 2021 13:15:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9Rmv1M4KMiavRZsfs93CUG1a5paKHtzZsBmocy4I8cHS8zvgIVL+BXjhBMjvn3VeZ8+te X-Received: by 2002:a05:6402:6c8:: with SMTP id n8mr12295522edy.180.1624133726648; Sat, 19 Jun 2021 13:15:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624133726; cv=none; d=google.com; s=arc-20160816; b=YQShEvkcIdXn0rNXoA7ALa+WkMDTAIWrGtnX0H9qUGMWxsxMejUMsB5EqbZ5s2Rx9g BJNx4nQSrL96I5GpIH370XKsR+25nUtfabziCUhrKLd89bqPKly4ySGXrjXz52CDz9L2 zgNgxPPTpr8V0GeTFVdpEi0qw6Y/vy99zPqtipNlh2UC+swi/lJR0IdXIC0ZK3Dw/fvF yQOp3Vf0+n9MWzci8OFGHtBEK4IKjchrt8Qo5XSwmIHV+h4P9MRvFfJ+aQTwYS1/cW4h KH81ICTA8okDpPjHI93sq4E1mkvkX09fJ0o+TZ884CZ3swiLtS5O5SjVXftkxlqKPAAI 02gw== 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:dkim-signature; bh=s42oowK7cO0V1ZW3C3sS49FrZZtUENhP2zLbYkd5Fe8=; b=sLYGcHBQkMtIL+qPMyoBb26ESCT0ijRn8hXbmqfSJjBrFtUj5w9UkkNRb1eOjnRx+9 U6Wg3gZpn+iIqVOSFajOUE9YLQ7opJYKG9UqWHJ6eZh4gxtXnqSEbiB0AsGToxPVWxzn 2MqXxLumODQXl8nYtjY/OerUphMoB7qH71pogpENFm/o6i8zndFNewEXdviqghxPCffM Zl7iw2cNxf14JaN6nHUi1Jz30VdlQ2moSaKOuC2PccG/LLawVLFBMms7JdPQiXIozS0C yA0Q6JJ2E35KLL7lZU6sILrwyYY05T42k+0q7lv6bisiAQPfiUUz/ZetNDOxxSBY17RU OPTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@vivo.com header.s=default header.b=V7U9SUoP; 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 15si2650709edv.482.2021.06.19.13.15.04; Sat, 19 Jun 2021 13:15:26 -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=V7U9SUoP; 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 S233971AbhFSGqT (ORCPT + 99 others); Sat, 19 Jun 2021 02:46:19 -0400 Received: from mail-m17639.qiye.163.com ([59.111.176.39]:14236 "EHLO mail-m17639.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232371AbhFSGqT (ORCPT ); Sat, 19 Jun 2021 02:46:19 -0400 DKIM-Signature: a=rsa-sha256; b=V7U9SUoPmwi6dCxg84nX2VemV9THIQztla0KW9b/w8RzxJGQ6E9L3N3Jlg+J/5dbZnZOx/ZIvmeF1q3nLDZ4SfqDDENrTehFTVivHVt/HVk7M01oVkIUDH7LYcFLM8VyLW7h/7fnAYJ2LGnOoWe2A2Z4I3naFac75W5dg/NhJAY=; s=default; c=relaxed/relaxed; d=vivo.com; v=1; bh=s42oowK7cO0V1ZW3C3sS49FrZZtUENhP2zLbYkd5Fe8=; 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 F243C380113; Sat, 19 Jun 2021 14:44:04 +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 0/4] delete useless function return values & remove meaningless if(r) check code Date: Fri, 18 Jun 2021 23:43:44 -0700 Message-Id: <20210619064349.26676-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGhlCH1ZCTx5IQx4eGRpNGkNVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hOSFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NzI6Ljo*PT8cTkIJKxcXTSkD NVYaCRNVSlVKTUlPS0NOS09OT0tOVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFJTk1NNwY+ X-HM-Tid: 0a7a23031f84d994kuwsf243c380113 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Function radeon_fence_driver_init always returns success, the function type maybe coule be changed to void. This patch series will first delete the check of the return value of the function call radeon_fence_driver_init, then, optimise the function declaration and function to void type. Signed-off-by: Bernard Zhao Bernard Zhao (4): drm/radeon: remove meaningless if(r) check code drm/radeon: remove meaningless if(r) check code drm/radeon: remove meaningless if(r) check code drm/radeon: delete useless return values drivers/gpu/drm/radeon/cik.c | 4 +--- drivers/gpu/drm/radeon/evergreen.c | 4 +--- drivers/gpu/drm/radeon/ni.c | 4 +--- drivers/gpu/drm/radeon/r100.c | 4 +--- drivers/gpu/drm/radeon/r300.c | 4 +--- drivers/gpu/drm/radeon/r420.c | 5 +---- drivers/gpu/drm/radeon/r520.c | 4 +--- drivers/gpu/drm/radeon/r600.c | 4 +--- drivers/gpu/drm/radeon/radeon.h | 2 +- drivers/gpu/drm/radeon/radeon_fence.c | 5 +---- 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 +--- drivers/gpu/drm/radeon/si.c | 4 +--- 16 files changed, 16 insertions(+), 48 deletions(-) -- 2.31.0