Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH] dvb_frontend: initialize variable s with FE_NONE instead of 0
@ 2017-07-21 16:01 Colin King
  2017-07-21 18:05 ` Shuah Khan
  2017-07-23 23:07 ` kbuild test robot
  0 siblings, 2 replies; 4+ messages in thread
From: Colin King @ 2017-07-21 16:01 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Max Kellermann, Ingo Molnar,
	Markus Elfring, Shuah Khan, Masahiro Yamada, linux-media
  Cc: linux-kernel

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>
---
 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;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-23 23:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-07-21 18:09   ` Colin Ian King
2017-07-23 23:07 ` kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox