diff options
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/bt8xx/dst.c | 8 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb_dummy_fe.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/l64781.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/lgdt330x.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/mt312.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/or51132.c | 3 |
6 files changed, 9 insertions, 15 deletions
diff --git a/drivers/media/dvb/bt8xx/dst.c b/drivers/media/dvb/bt8xx/dst.c index 34a837a1abf4..b3c9d7327ac1 100644 --- a/drivers/media/dvb/bt8xx/dst.c +++ b/drivers/media/dvb/bt8xx/dst.c | |||
@@ -1331,9 +1331,7 @@ struct dst_state *dst_attach(struct dst_state *state, struct dvb_adapter *dvb_ad | |||
1331 | { | 1331 | { |
1332 | /* check if the ASIC is there */ | 1332 | /* check if the ASIC is there */ |
1333 | if (dst_probe(state) < 0) { | 1333 | if (dst_probe(state) < 0) { |
1334 | if (state) | 1334 | kfree(state); |
1335 | kfree(state); | ||
1336 | |||
1337 | return NULL; | 1335 | return NULL; |
1338 | } | 1336 | } |
1339 | /* determine settings based on type */ | 1337 | /* determine settings based on type */ |
@@ -1349,9 +1347,7 @@ struct dst_state *dst_attach(struct dst_state *state, struct dvb_adapter *dvb_ad | |||
1349 | break; | 1347 | break; |
1350 | default: | 1348 | default: |
1351 | dprintk(verbose, DST_ERROR, 1, "unknown DST type. please report to the LinuxTV.org DVB mailinglist."); | 1349 | dprintk(verbose, DST_ERROR, 1, "unknown DST type. please report to the LinuxTV.org DVB mailinglist."); |
1352 | if (state) | 1350 | kfree(state); |
1353 | kfree(state); | ||
1354 | |||
1355 | return NULL; | 1351 | return NULL; |
1356 | } | 1352 | } |
1357 | 1353 | ||
diff --git a/drivers/media/dvb/frontends/dvb_dummy_fe.c b/drivers/media/dvb/frontends/dvb_dummy_fe.c index 794be520d590..645946a992d9 100644 --- a/drivers/media/dvb/frontends/dvb_dummy_fe.c +++ b/drivers/media/dvb/frontends/dvb_dummy_fe.c | |||
@@ -148,7 +148,7 @@ struct dvb_frontend* dvb_dummy_fe_qpsk_attach() | |||
148 | return &state->frontend; | 148 | return &state->frontend; |
149 | 149 | ||
150 | error: | 150 | error: |
151 | if (state) kfree(state); | 151 | kfree(state); |
152 | return NULL; | 152 | return NULL; |
153 | } | 153 | } |
154 | 154 | ||
@@ -171,7 +171,7 @@ struct dvb_frontend* dvb_dummy_fe_qam_attach() | |||
171 | return &state->frontend; | 171 | return &state->frontend; |
172 | 172 | ||
173 | error: | 173 | error: |
174 | if (state) kfree(state); | 174 | kfree(state); |
175 | return NULL; | 175 | return NULL; |
176 | } | 176 | } |
177 | 177 | ||
diff --git a/drivers/media/dvb/frontends/l64781.c b/drivers/media/dvb/frontends/l64781.c index faaad1ae8559..19b4bf7c21a7 100644 --- a/drivers/media/dvb/frontends/l64781.c +++ b/drivers/media/dvb/frontends/l64781.c | |||
@@ -559,7 +559,8 @@ struct dvb_frontend* l64781_attach(const struct l64781_config* config, | |||
559 | return &state->frontend; | 559 | return &state->frontend; |
560 | 560 | ||
561 | error: | 561 | error: |
562 | if (reg0x3e >= 0) l64781_writereg (state, 0x3e, reg0x3e); /* restore reg 0x3e */ | 562 | if (reg0x3e >= 0) |
563 | l64781_writereg (state, 0x3e, reg0x3e); /* restore reg 0x3e */ | ||
563 | kfree(state); | 564 | kfree(state); |
564 | return NULL; | 565 | return NULL; |
565 | } | 566 | } |
diff --git a/drivers/media/dvb/frontends/lgdt330x.c b/drivers/media/dvb/frontends/lgdt330x.c index 8dde72bd1046..7852b83b82d4 100644 --- a/drivers/media/dvb/frontends/lgdt330x.c +++ b/drivers/media/dvb/frontends/lgdt330x.c | |||
@@ -731,8 +731,7 @@ struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config, | |||
731 | return &state->frontend; | 731 | return &state->frontend; |
732 | 732 | ||
733 | error: | 733 | error: |
734 | if (state) | 734 | kfree(state); |
735 | kfree(state); | ||
736 | dprintk("%s: ERROR\n",__FUNCTION__); | 735 | dprintk("%s: ERROR\n",__FUNCTION__); |
737 | return NULL; | 736 | return NULL; |
738 | } | 737 | } |
diff --git a/drivers/media/dvb/frontends/mt312.c b/drivers/media/dvb/frontends/mt312.c index e38454901dd1..9c67f406d581 100644 --- a/drivers/media/dvb/frontends/mt312.c +++ b/drivers/media/dvb/frontends/mt312.c | |||
@@ -677,8 +677,7 @@ struct dvb_frontend* mt312_attach(const struct mt312_config* config, | |||
677 | return &state->frontend; | 677 | return &state->frontend; |
678 | 678 | ||
679 | error: | 679 | error: |
680 | if (state) | 680 | kfree(state); |
681 | kfree(state); | ||
682 | return NULL; | 681 | return NULL; |
683 | } | 682 | } |
684 | 683 | ||
diff --git a/drivers/media/dvb/frontends/or51132.c b/drivers/media/dvb/frontends/or51132.c index 817b044c7fd1..fc74c40d6477 100644 --- a/drivers/media/dvb/frontends/or51132.c +++ b/drivers/media/dvb/frontends/or51132.c | |||
@@ -577,8 +577,7 @@ struct dvb_frontend* or51132_attach(const struct or51132_config* config, | |||
577 | return &state->frontend; | 577 | return &state->frontend; |
578 | 578 | ||
579 | error: | 579 | error: |
580 | if (state) | 580 | kfree(state); |
581 | kfree(state); | ||
582 | return NULL; | 581 | return NULL; |
583 | } | 582 | } |
584 | 583 | ||