* [PATCH 31/37] dvb: nxt200x: check callback fix
@ 2005-11-01 8:16 Michael Krufky
0 siblings, 0 replies; only message in thread
From: Michael Krufky @ 2005-11-01 8:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel, linux-dvb-maintainer
[-- Attachment #1: Type: text/plain, Size: 2 bytes --]
[-- Attachment #2: 2408.patch --]
[-- Type: text/x-patch, Size: 888 bytes --]
Check that a callback (set_ts_params) is set before calling it.
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
drivers/media/dvb/frontends/nxt200x.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- linux-2.6.14-git3.orig/drivers/media/dvb/frontends/nxt200x.c
+++ linux-2.6.14-git3/drivers/media/dvb/frontends/nxt200x.c
@@ -557,14 +557,16 @@
case QAM_256:
/* Set punctured clock for QAM */
/* This is just a guess since I am unable to test it */
- state->config->set_ts_params(fe, 1);
+ if (state->config->set_ts_params)
+ state->config->set_ts_params(fe, 1);
/* set to use cable input */
buf[3] |= 0x08;
break;
case VSB_8:
/* Set non-punctured clock for VSB */
- state->config->set_ts_params(fe, 0);
+ if (state->config->set_ts_params)
+ state->config->set_ts_params(fe, 0);
break;
default:
return -EINVAL;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-01 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-01 8:16 [PATCH 31/37] dvb: nxt200x: check callback fix Michael Krufky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.