Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6082199ybv; Tue, 18 Feb 2020 09:30:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyp4wPRzucIH075bsuJ1Xzy9psZ4bZ9zascXEDXUnvAJEb716kxwpJ+1+Vc11Bu0aA+cn/O X-Received: by 2002:aca:4106:: with SMTP id o6mr1961567oia.173.1582047051191; Tue, 18 Feb 2020 09:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582047051; cv=none; d=google.com; s=arc-20160816; b=FPMnU5tqBqj874/pwV2kr2zf/IiNCGAFwWc9M9fDv7T9zYzh8IG+35SxSofIWPlJ+d 0bUEhLMb4+oUFgKuuoy2KPhT4yCLfFkYPv7cvU/ES/MRCOYLfFANnfWqxJsQFTPWtXOe sIV8MjK6K5j3JTBtYlHIVYyYCjGN0anpMHnAOD0epTECcBSdjhYDGxoo4yh5rnov8yUL A9SGhhR6Wf05t/J0cUY/hhPb17X4wNSv88H400ZGnnGswywoWZ9No8PD08wSBZWRPBsn 7/vUcjvrRVx8DNw5OulcPvr8x73O0vekVATeGfNjhdoVJLCpiwlSnnu+06ECrKvE6Tq8 3H9w== 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=fJCUVuOG5tbGj7Unp2+2ZA6RrFKuCTBt0CDjnpp8ebg=; b=Rc/3dqWllLk/VUPJDpqGwbAoFwUISiZGC4bUA2WoUJd0wJHsaAU+w7dt6FmpmXY5I4 Wx8uyBadg+OtTB/anHQ9VUMya1p1dHyBxY3PByUJ86SzdB6Ac6nIBSaeLmqLOtvn5ISo GiqePs5Rzuzd9Ik60BjhyJDHnT5tlffjth5dEhELGJDVM/Qxap2M03WVw4x9+SwZuHz1 5jYyK2Qw+SMVYuLB+6DbIN8+4L66nVi8guXsGwNBCbAFgg/Qv+PbsYYPDOoQJ/wf6OCt +ViMKpNuRaeICKVuvU74Dt3AjL4a/yC41zePHxvcO/BZRW7vEqKb0k7pez9yFYvtBu3s Lwlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DeBfRQwO; 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 j143si8448037oib.16.2020.02.18.09.30.38; Tue, 18 Feb 2020 09:30:51 -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=DeBfRQwO; 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 S1726842AbgBRR3D (ORCPT + 99 others); Tue, 18 Feb 2020 12:29:03 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50784 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbgBRR3C (ORCPT ); Tue, 18 Feb 2020 12:29:02 -0500 Received: by mail-wm1-f67.google.com with SMTP id a5so3634434wmb.0 for ; Tue, 18 Feb 2020 09:29:01 -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=fJCUVuOG5tbGj7Unp2+2ZA6RrFKuCTBt0CDjnpp8ebg=; b=DeBfRQwO7WmsMiUEWqqu0pisiFiytN1kRE3ovxPWxXPUPasgOx5xW0HDHV087Z6J3S 90y+ekqox/Isc0OFu5EzaPyiwh8IISlBzER96+R1SLct3516OZigGU2J7Rfo1WKjP/qJ ypaMSnbmhb0U9z87AkcGaI/sqVW6XaIEU14eExHOKin9KMDwgoN+oim2AHWeTkSjtEzm NRkMDcoffXeWOMvX9IrfT2xMdxPp3hOQBHbPsOhXirwSVICOu9ji2al0z1UW3xIV3uRI hfsgnfE6oKqjlPkAh5+fce+Ejladdoq8D0dPQSH4w2O8fjin8DV+dLlpDA8/fvoaM2CZ EQtw== 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=fJCUVuOG5tbGj7Unp2+2ZA6RrFKuCTBt0CDjnpp8ebg=; b=rVkYWJDc3+oDJG48XCYg0CP8MiXk20eGfNJafX5q9Cdpz7lD4onVUwNk3W5C31fWsm m2vy2DxYJ4AUY/tRa5vBDAx191g7HVcqAlSbjlCvKY+T3guNKvZuIiv5cwYZSQ1bmm2H W9s/nqA1VOVOsA13R0E61kR7HqUMcjwLe8NjJ/Szt3tohMDh3VTaJgprDdrgOfrd6o+s DDAdb5xNx6P1K8EjMP2XJXvkswYuNx8mIvFm0uTUVLfVE9ugS1JgaATastRe3aTFAf7A A8T8tEhrY4WWdR2qtnds7ZxYL2t5T4XfUFkuJVoZ+g/4KkpsDbCxx4SEORmqxWhQj53p +PeA== X-Gm-Message-State: APjAAAWbWtm6J9oFlm7MeB+LVONCBaPM7qDnvTbDh8FLMma5jE9rrGGH Kew4YqAwcp2O7dojF34Nr9E/fgQMtNOQtg== X-Received: by 2002:a7b:cd14:: with SMTP id f20mr4165934wmj.43.1582046941333; Tue, 18 Feb 2020 09:29:01 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Feb 2020 09:29:00 -0800 (PST) From: Wambui Karuga To: eric@anholt.net, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org Subject: [PATCH] drm/vc4: remove check of return value of drm_debugfs functions Date: Tue, 18 Feb 2020 20:28:19 +0300 Message-Id: <20200218172821.18378-8-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 Remove unnecessary check and error handling for the return value of drm_debugfs_create_files in vc4_debugfs_init. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/vc4/vc4_debugfs.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_debugfs.c b/drivers/gpu/drm/vc4/vc4_debugfs.c index b61b2d3407b5..1835f12337ec 100644 --- a/drivers/gpu/drm/vc4/vc4_debugfs.c +++ b/drivers/gpu/drm/vc4/vc4_debugfs.c @@ -30,11 +30,8 @@ vc4_debugfs_init(struct drm_minor *minor) minor->debugfs_root, &vc4->load_tracker_enabled); list_for_each_entry(entry, &vc4->debugfs_list, link) { - int ret = drm_debugfs_create_files(&entry->info, 1, - minor->debugfs_root, minor); - - if (ret) - return ret; + drm_debugfs_create_files(&entry->info, 1, + minor->debugfs_root, minor); } return 0; -- 2.25.0