diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-29 15:48:10 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-01 06:14:15 -0300 |
commit | b674ac290e47623aa8e6791aed2d7395f7ea313f (patch) | |
tree | c53c33114f4fe6ac2a43919758f9199b842123b2 /drivers/media/dvb-frontends/tda10086.c | |
parent | 05a848ecbb06d2b6cc5fc86ca227862a83ea0183 (diff) | |
download | linux-b674ac290e47623aa8e6791aed2d7395f7ea313f.tar.gz linux-b674ac290e47623aa8e6791aed2d7395f7ea313f.tar.bz2 linux-b674ac290e47623aa8e6791aed2d7395f7ea313f.zip |
[media] tda10086: change typecast to u64 to avoid smatch warnings
drivers/media/dvb-frontends/tda10086.c:476 tda10086_get_frontend() warn: should 'tda10086_read_byte(state, 81) << 8' be a 64 bit type?
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/tda10086.c')
-rw-r--r-- | drivers/media/dvb-frontends/tda10086.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/tda10086.c b/drivers/media/dvb-frontends/tda10086.c index fcfe2e080cb0..f1a752187d08 100644 --- a/drivers/media/dvb-frontends/tda10086.c +++ b/drivers/media/dvb-frontends/tda10086.c @@ -472,8 +472,8 @@ static int tda10086_get_frontend(struct dvb_frontend *fe) return -EINVAL; /* calculate the updated frequency (note: we convert from Hz->kHz) */ - tmp64 = tda10086_read_byte(state, 0x52); - tmp64 |= (tda10086_read_byte(state, 0x51) << 8); + tmp64 = ((u64)tda10086_read_byte(state, 0x52) + | (tda10086_read_byte(state, 0x51) << 8)); if (tmp64 & 0x8000) tmp64 |= 0xffffffffffff0000ULL; tmp64 = (tmp64 * (SACLK/1000ULL)); |