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:
68c16a7
)
[media] si2168: remove unneeded fw variable initialization
author
Antti Palosaari
<
[email protected]
>
Fri, 5 Dec 2014 20:22:42 +0000
(17:22 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 29 Jan 2015 20:44:43 +0000
(18:44 -0200)
commit
034e1ec0ce299b9e90056793dcb3187e7add6b62
si2168: One function call less in si2168_init() after error detection
That commit added goto label for error path to release firmware,
but forgets to remove variable NULL set. Remove those now.
Signed-off-by: Antti Palosaari <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/dvb-frontends/si2168.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-frontends/si2168.c
b/drivers/media/dvb-frontends/si2168.c
index 66b9c9ca28f4dcb22e0d78aa61c0309a8acbec33..766362ed6b5256f4a49c04dd135016913dfa724c 100644
(file)
--- a/
drivers/media/dvb-frontends/si2168.c
+++ b/
drivers/media/dvb-frontends/si2168.c
@@
-346,7
+346,7
@@
static int si2168_init(struct dvb_frontend *fe)
struct i2c_client *client = fe->demodulator_priv;
struct si2168_dev *dev = i2c_get_clientdata(client);
int ret, len, remaining;
- const struct firmware *fw
= NULL
;
+ const struct firmware *fw;
u8 *fw_file;
struct si2168_cmd cmd;
unsigned int chip_id;
@@
-483,7
+483,6
@@
static int si2168_init(struct dvb_frontend *fe)
}
release_firmware(fw);
- fw = NULL;
memcpy(cmd.args, "\x01\x01", 2);
cmd.wlen = 2;