From: "Christian König" <christian.koenig@amd.com>
To: Li zeming <zeming@nfschina.com>,
ray.huang@amd.com, airlied@linux.ie, daniel@ffwll.ch
Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/ttm: Remove unnecessary '0' values from ret
Date: Wed, 7 Sep 2022 09:44:06 +0200 [thread overview]
Message-ID: <c0c7747d-582f-9e90-b664-94f25c0c227f@amd.com> (raw)
In-Reply-To: <20220907032934.4490-1-zeming@nfschina.com>
Am 07.09.22 um 05:29 schrieb Li zeming:
> The variable ret is assigned in the judgment branch statement, he does
> not need to initialize the assignment.
>
> Signed-off-by: Li zeming <zeming@nfschina.com>
Reviewed and pushed to drm-misc-next.
Thanks,
Christian.
> ---
> include/drm/ttm/ttm_bo_driver.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h
> index 897b88f0bd59..1afa891f488a 100644
> --- a/include/drm/ttm/ttm_bo_driver.h
> +++ b/include/drm/ttm/ttm_bo_driver.h
> @@ -106,7 +106,7 @@ static inline int ttm_bo_reserve(struct ttm_buffer_object *bo,
> bool interruptible, bool no_wait,
> struct ww_acquire_ctx *ticket)
> {
> - int ret = 0;
> + int ret;
>
> if (no_wait) {
> bool success;
prev parent reply other threads:[~2022-09-07 7:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-07 3:29 [PATCH] drm/ttm: Remove unnecessary '0' values from ret Li zeming
2022-09-07 7:44 ` Christian König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c0c7747d-582f-9e90-b664-94f25c0c227f@amd.com \
--to=christian.koenig@amd.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ray.huang@amd.com \
--cc=zeming@nfschina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).