From: Shuah Khan <shuah@kernel.org>
To: Colin King <colin.king@canonical.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Max Kellermann <max.kellermann@gmail.com>,
Ingo Molnar <mingo@kernel.org>,
Markus Elfring <elfring@users.sourceforge.net>,
Masahiro Yamada <yamada.masahiro@socionext.com>,
linux-media@vger.kernel.org
Cc: Shuah Khan <shuahkh@osg.samsung.com>, Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH] dvb_frontend: initialize variable s with FE_NONE instead of 0
Date: Fri, 21 Jul 2017 12:05:17 -0600 [thread overview]
Message-ID: <85739b36-5d04-a64f-e3d5-b8f84bf9d19a@kernel.org> (raw)
In-Reply-To: <20170721160100.22617-1-colin.king@canonical.com>
On 07/21/2017 10:01 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> In a previous commit, we added FE_NONE as an unknown fe_status.
> Initialize variable s to FE_NONE instead of the more opaque value 0.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
The change looks good to me.
Reviewed-by: Shuah Khan <shuahkh@osg.samsung.com>
I think this patch should be part of a patch series that includes
the uAPI Documentation change, uAPI change, and the following
patch:
[PATCH][V2] dvb_frontend: ensure that inital front end status initialized
based on Mauro's review comments. Anyway, I will leave it to Mauro to
decide how he wants the patches split and if he is okay with uAPI change.
thanks,
-- Shuah
> ---
> drivers/media/dvb-core/dvb_frontend.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
> index 18cc3bbc699c..114994ca0929 100644
> --- a/drivers/media/dvb-core/dvb_frontend.c
> +++ b/drivers/media/dvb-core/dvb_frontend.c
> @@ -460,7 +460,7 @@ static int dvb_frontend_swzigzag_autotune(struct dvb_frontend *fe, int check_wra
>
> static void dvb_frontend_swzigzag(struct dvb_frontend *fe)
> {
> - enum fe_status s = 0;
> + enum fe_status s = FE_NONE;
> int retval = 0;
> struct dvb_frontend_private *fepriv = fe->frontend_priv;
> struct dtv_frontend_properties *c = &fe->dtv_property_cache, tmp;
>
next prev parent reply other threads:[~2017-07-21 18:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 16:01 [PATCH] dvb_frontend: initialize variable s with FE_NONE instead of 0 Colin King
2017-07-21 18:05 ` Shuah Khan [this message]
2017-07-21 18:09 ` Colin Ian King
2017-07-23 23:07 ` kbuild test robot
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=85739b36-5d04-a64f-e3d5-b8f84bf9d19a@kernel.org \
--to=shuah@kernel.org \
--cc=colin.king@canonical.com \
--cc=elfring@users.sourceforge.net \
--cc=linux-media@vger.kernel.org \
--cc=max.kellermann@gmail.com \
--cc=mchehab@kernel.org \
--cc=mingo@kernel.org \
--cc=shuahkh@osg.samsung.com \
--cc=yamada.masahiro@socionext.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