[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADaigPXx=sT58fPabvBBMdopQ3Gz4=_r76dj0CY=y=8bNteVKA@mail.gmail.com>
Date: Wed, 19 Feb 2020 10:46:58 -0800
From: Eric Anholt <eric@...olt.net>
To: Wambui Karuga <wambui.karugax@...il.com>
Cc: David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>,
DRI Development <dri-devel@...ts.freedesktop.org>,
linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org
Subject: Re: [PATCH] drm/v3d: make v3d_debugfs_init return 0
On Tue, Feb 18, 2020 at 9:28 AM Wambui Karuga <wambui.karugax@...il.com> wrote:
>
> As drm_debugfs_create_files should return void, remove its use as the
> return value of v3d_debugfs_init and have the function return 0
> directly.
If we're going this route, then this function should be returning void, too.
>
> Signed-off-by: Wambui Karuga <wambui.karugax@...il.com>
> ---
> drivers/gpu/drm/v3d/v3d_debugfs.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/v3d/v3d_debugfs.c b/drivers/gpu/drm/v3d/v3d_debugfs.c
> index 9e953ce64ef7..57dded6a3957 100644
> --- a/drivers/gpu/drm/v3d/v3d_debugfs.c
> +++ b/drivers/gpu/drm/v3d/v3d_debugfs.c
> @@ -261,7 +261,8 @@ static const struct drm_info_list v3d_debugfs_list[] = {
> int
> v3d_debugfs_init(struct drm_minor *minor)
> {
> - return drm_debugfs_create_files(v3d_debugfs_list,
> - ARRAY_SIZE(v3d_debugfs_list),
> - minor->debugfs_root, minor);
> + drm_debugfs_create_files(v3d_debugfs_list,
> + ARRAY_SIZE(v3d_debugfs_list),
> + minor->debugfs_root, minor);
> + return 0;
> }
> --
> 2.25.0
>
Powered by blists - more mailing lists