summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-01-09 22:09:16 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-09 22:02:51 +0100
commit682e852e2638ed0aff84aa51181c9e5d2f939562 (patch)
treee1a5221fe0c98d743fbceec2d0932f3556aecf93 /drivers/media/dvb
parent[PATCH] Fix sg_page_malloc() memset (diff)
downloadlinux-682e852e2638ed0aff84aa51181c9e5d2f939562.tar.xz
linux-682e852e2638ed0aff84aa51181c9e5d2f939562.zip
[PATCH] Fix more "if ((err = foo() < 0))" typos
Another reason to use: ret = foo(); if (ret < 0) goto out; Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/mt312.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/mt312.c b/drivers/media/dvb/frontends/mt312.c
index 8d672283c93d..ec4e641acc64 100644
--- a/drivers/media/dvb/frontends/mt312.c
+++ b/drivers/media/dvb/frontends/mt312.c
@@ -501,7 +501,8 @@ static int mt312_set_frontend(struct dvb_frontend* fe,
case ID_VP310:
// For now we will do this only for the VP310.
// It should be better for the mt312 as well, but tunning will be slower. ACCJr 09/29/03
- if ((ret = mt312_readreg(state, CONFIG, &config_val) < 0))
+ ret = mt312_readreg(state, CONFIG, &config_val);
+ if (ret < 0)
return ret;
if (p->u.qpsk.symbol_rate >= 30000000) //Note that 30MS/s should use 90MHz
{