Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6080818ybv; Tue, 18 Feb 2020 09:29:20 -0800 (PST) X-Google-Smtp-Source: APXvYqwiCVf9gJSL6rLGeG0Ev4tWQnUl3hDPinG1Gz4n8jXcVZ7pXt16Eg6pTNf4/MmLipHR+lhh X-Received: by 2002:aca:4994:: with SMTP id w142mr1880036oia.178.1582046960690; Tue, 18 Feb 2020 09:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582046960; cv=none; d=google.com; s=arc-20160816; b=HQlV2q2gUEXJpVaRNqGeUNPA+d2xd212La+E+AwGxy+lq9oJCD4WB9n7sHqCGHgQW3 k/0v+RSfc59XYm+7YfjdQGtmnsX6S9aB7GQaK1PjhTnwFf/Z/Yimebi08xvcP7+KemUO Can2MCJyK5/DrhmddD8iyLuf097URiHs12Sj9kCPisr/YQVyiU4Vr+/ZdSfFNxRl0Lwp I41xlUsQ48aGEMcp6P7jLVHob+rg5vVSJWl2s/UoZyttiTHDzMT4T4a3cbR8iwJSJw8E vTnLIBTv+bGjPrbwOtf59zCksuXXZ4HveISb+16OkCfLkUdJZCrNseXKHrk85DePIRln wk5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oxzxVwtma/sV1OQLWFOvLbYDQnp164egmH9oHWBKQVY=; b=HD+ilNeAlN6BtyKde+e2OEl7AOMhbmotlsF2bKCxVXreAFcKigCV+1yNA9uWLUx0YR FMr85MfJ/LzwhbUxb7aR9odx3DmPVY7YfwwlDqwd+qkRdcF5ADLRDfsURy049wVs8NOc dwqED92vvHR/AaXqcSjbCDte1W+VsgCFMmBLx1aBRqj1KXL0h8azYi8r+XslXyw7wa7q qmCQgggoxNAfuZ6rnuyRZkytUyhwCAMw4I9ZupY6Jh3Y9pqzPu1VvvImxrXlsJ4Oe+24 y8aFc4THWJ3myvJLOavtu+4AR0gUJIuk1V4bjjOdEGEY0eof5qKgKDJIaZvZN8naBvPG QBWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="SI/uH1xI"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z10si7811222oic.77.2020.02.18.09.29.08; Tue, 18 Feb 2020 09:29:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="SI/uH1xI"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727006AbgBRR2p (ORCPT + 99 others); Tue, 18 Feb 2020 12:28:45 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34386 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbgBRR2p (ORCPT ); Tue, 18 Feb 2020 12:28:45 -0500 Received: by mail-wm1-f65.google.com with SMTP id s144so2681076wme.1 for ; Tue, 18 Feb 2020 09:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oxzxVwtma/sV1OQLWFOvLbYDQnp164egmH9oHWBKQVY=; b=SI/uH1xIfGPD62vOdOEf7CHgVLuavz+9UnHb0QSFE1QC7srr+PLLyPC4Wouwv/q3wb EghJWSRtEEmtL06aNjYJVegEuXoSCBPSXvT3hz3216Jrcleq1EXIeFyThIdSwhUGjg7s lakD2jP63CuPYBsWpVDEOLF2orsp6BAHUtYZ4Jl+QY89p7I+M9n6X24EPrZxgCgvvbv6 2SGkyWXj8erV/x2GssFTXboxcMLFMuxpAdTa/8mAdRc5h2Q/TjPTkdA3YODmdPinCsRj J/pLbAl0iEq8OrEsBQSsZkb6Gl5CoLoZzsnVOPM6qnVstc1X9cZth1qHLRtNCEhdrG6F Yd1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oxzxVwtma/sV1OQLWFOvLbYDQnp164egmH9oHWBKQVY=; b=k6+nLHlR8TESDamaARWGAh3TAF+sbAq0P8cX5PifMoktNG/lKi0DyoeZpvWhQsTrvU WhoGJUH8aP0m3zFfPpMR99aAGNCjtr63650ULQNK40bIHrt1Z58BcO7Y/1NlqO/4SWl2 ipnzNw/alUMOtuAz/gKidFflDvHdHRxuA+jWWgQnWQPo0C0TJjR5Mv9T7f+nLm0bfJoh G36LANiPlZtr18JSi9dPi0g1rSm1ROIRxM14hM0DY6L9FtDAT4vm1xQZfTsxaFa2Ivru zIOXKstLnJa570t+q5r0TECev4jrJ4vAQwtP0lRy5e72Rtt+SbeLZue0xPSUj/wCbR5f stEg== X-Gm-Message-State: APjAAAWtVTWNhN7G7whHeBQsuNJb894iFH1Kw5k98gPiOAd2+wTSq44v RYPNUEIT7KOcraSJrOXySp8= X-Received: by 2002:a1c:a952:: with SMTP id s79mr4442372wme.83.1582046923100; Tue, 18 Feb 2020 09:28:43 -0800 (PST) Received: from wambui.zuku.co.ke ([197.237.61.225]) by smtp.googlemail.com with ESMTPSA id t13sm6998757wrw.19.2020.02.18.09.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 09:28:42 -0800 (PST) From: Wambui Karuga To: linux+etnaviv@armlinux.org.uk, l.stach@pengutronix.de, christian.gmeiner@gmail.com, airlied@linux.ie, daniel@ffwll.ch Cc: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH] drm/etnaviv: remove check for return value of drm_debugfs function Date: Tue, 18 Feb 2020 20:28:15 +0300 Message-Id: <20200218172821.18378-4-wambui.karugax@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200218172821.18378-1-wambui.karugax@gmail.com> References: <20200218172821.18378-1-wambui.karugax@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As there is no need to check the return value if drm_debugfs_create_files, remove the check and error handling in etnaviv_debugfs_init and have the function return 0 directly. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index 6b43c1c94e8f..a65d30a48a9d 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -233,19 +233,11 @@ static struct drm_info_list etnaviv_debugfs_list[] = { static int etnaviv_debugfs_init(struct drm_minor *minor) { - struct drm_device *dev = minor->dev; - int ret; - - ret = drm_debugfs_create_files(etnaviv_debugfs_list, - ARRAY_SIZE(etnaviv_debugfs_list), - minor->debugfs_root, minor); + drm_debugfs_create_files(etnaviv_debugfs_list, + ARRAY_SIZE(etnaviv_debugfs_list), + minor->debugfs_root, minor); - if (ret) { - dev_err(dev->dev, "could not install etnaviv_debugfs_list\n"); - return ret; - } - - return ret; + return 0; } #endif -- 2.25.0