From: Artur Weber <aweber.kernel@gmail.com>
To: Andi Shyti <andi.shyti@linux.intel.com>,
Wang Jianzheng <wangjianzheng@vivo.com>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>,
"open list:DRM PANEL DRIVERS" <dri-devel@lists.freedesktop.org>,
open list <linux-kernel@vger.kernel.org>,
opensource.kernel@vivo.com
Subject: Re: [PATCH] drm/panel: s6d7aa0: remove the unneeded variable in s6d7aa0_lock
Date: Thu, 8 Jun 2023 11:52:34 +0200 [thread overview]
Message-ID: <f8b532eb-5233-f7a1-9e36-7f762208e903@gmail.com> (raw)
In-Reply-To: <ZIGhBvFlHwVmKJG4@ashyti-mobl2.lan>
On 08/06/2023 11:36, Andi Shyti wrote:
> Hi Jianzheng,
>
> On Thu, Jun 08, 2023 at 11:34:46AM +0800, Wang Jianzheng wrote:
>> Remove unneeded variable and directly return 0.
>>
>> Signed-off-by: Wang Jianzheng <wangjianzheng@vivo.com>
>> ---
>> drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c b/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
>> index 102e1fc7ee38..fec0d014fd0e 100644
>> --- a/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
>> +++ b/drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c
>> @@ -66,7 +66,6 @@ static void s6d7aa0_reset(struct s6d7aa0 *ctx)
>> static int s6d7aa0_lock(struct s6d7aa0 *ctx, bool lock)
>
> actually this function can completely made void.
It can't be made void, as the mipi_dsi_dcs_write_seq() macro calls
return with an int[1].
Best regards
Artur
[1] https://github.com/torvalds/linux/blob/v6.4-rc5/include/drm/drm_mipi_dsi.h#L319-L337
next prev parent reply other threads:[~2023-06-08 9:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-08 3:34 Wang Jianzheng
2023-06-08 7:30 ` Neil Armstrong
2023-06-08 9:36 ` Andi Shyti
2023-06-08 9:52 ` Artur Weber [this message]
2023-06-08 10:10 ` Artur Weber
2023-06-08 12:51 ` Neil Armstrong
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=f8b532eb-5233-f7a1-9e36-7f762208e903@gmail.com \
--to=aweber.kernel@gmail.com \
--cc=airlied@gmail.com \
--cc=andi.shyti@linux.intel.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=opensource.kernel@vivo.com \
--cc=sam@ravnborg.org \
--cc=wangjianzheng@vivo.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
all inboxes | Powered by JetHome®