projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fa728e
)
[media] max2165: trival fix for some -Wuninitialized warning
author
Danny Kukawka
<
[email protected]
>
Mon, 30 Jan 2012 21:00:06 +0000
(18:00 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Mon, 13 Feb 2012 23:54:11 +0000
(21:54 -0200)
Fix for some -Wuninitialized compiler warnings.
Signed-off-by: Danny Kukawka <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/common/tuners/max2165.c
patch
|
blob
|
history
diff --git
a/drivers/media/common/tuners/max2165.c
b/drivers/media/common/tuners/max2165.c
index cb2c98fbad1ba066d839ace44fe8a6fb5c500024..ba84936aafd6f8bda6e043d7328fa81fd39a6f52 100644
(file)
--- a/
drivers/media/common/tuners/max2165.c
+++ b/
drivers/media/common/tuners/max2165.c
@@
-168,7
+168,7
@@
int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction)
int i;
if (0 == divisor)
- return -
1
;
+ return -
EINVAL
;
q = dividend / divisor;
remainder = dividend - q * divisor;
@@
-194,10
+194,13
@@
static int max2165_set_rf(struct max2165_priv *priv, u32 freq)
u8 tf_ntch;
u32 t;
u32 quotient, fraction;
+ int ret;
/* Set PLL divider according to RF frequency */
- fixpt_div32(freq / 1000, priv->config->osc_clk * 1000,
- "ient, &fraction);
+ ret = fixpt_div32(freq / 1000, priv->config->osc_clk * 1000,
+ "ient, &fraction);
+ if (ret != 0)
+ return ret;
/* 20-bit fraction */
fraction >>= 12;