All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manu Abraham <manu@kromtek.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Johannes Stezenbach <js@linuxtv.org>, linux-kernel@vger.kernel.org
Subject: [PATCH 5/5] Small cleanup
Date: Fri, 27 May 2005 00:35:51 +0400	[thread overview]
Message-ID: <42963327.3010604@kromtek.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

o Miscellaneous cleanup

Signed-off-by: Manu Abraham <manu@kromtek.com>

     dst.c |    8 ++++----
     1 files changed, 4 insertions(+), 4 deletions(-)




[-- Attachment #2: small-cleanups.diff --]
[-- Type: text/x-patch, Size: 1218 bytes --]

--- linux-2.6.12-rc5.orig/drivers/media/dvb/bt8xx/dst.c	2005-05-26 11:16:20.000000000 +0400
+++ linux-2.6.12-rc5/drivers/media/dvb/bt8xx/dst.c	2005-05-26 15:05:37.000000000 +0400
@@ -1041,7 +1041,7 @@ static int dst_set_diseqc(struct dvb_fro
 	struct dst_state* state = fe->demodulator_priv;
 	u8 paket[8] = { 0x00, 0x08, 0x04, 0xe0, 0x10, 0x38, 0xf0, 0xec };
 
-	if (state->dst_type == DST_TYPE_IS_TERR)
+	if (state->dst_type != DST_TYPE_IS_SAT)
 		return 0;
 
 	if (cmd->msg_len == 0 || cmd->msg_len > 4)
@@ -1059,7 +1059,7 @@ static int dst_set_voltage(struct dvb_fr
 
 	state->voltage = voltage;
 
-	if (state->dst_type == DST_TYPE_IS_TERR)
+	if (state->dst_type != DST_TYPE_IS_SAT)
 		return 0;
 
 	need_cmd = 0;
@@ -1093,7 +1093,7 @@ static int dst_set_tone(struct dvb_front
 
 	state->tone = tone;
 
-	if (state->dst_type == DST_TYPE_IS_TERR)
+	if (state->dst_type != DST_TYPE_IS_SAT)
 		return 0;
 
 	switch (tone) {
@@ -1117,7 +1117,7 @@ static int dst_send_burst(struct dvb_fro
 {
 	struct dst_state *state = fe->demodulator_priv;
 
-	if ((state->dst_type == DST_TYPE_IS_TERR) || (state->dst_type == DST_TYPE_IS_CABLE))
+	if (state->dst_type != DST_TYPE_IS_SAT)
 		return 0;
 
 	state->minicmd = minicmd;




                 reply	other threads:[~2005-05-26 20:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=42963327.3010604@kromtek.com \
    --to=manu@kromtek.com \
    --cc=akpm@osdl.org \
    --cc=js@linuxtv.org \
    --cc=linux-kernel@vger.kernel.org \
    /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 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.