PD#SWPL-27559
Problem:
coverity issue
Solution:
fix coverity issue.
Verify:
verify at ab301
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Change-Id: I1bae31769759a211a719ec8eec3611bade4233f9
s_tuner_type[i] = AM_TUNER_NONE;
}
+ if (advb->tuners)
+ kfree(advb->tuners);
+ pr_dbg("probe amlogic dvb driver [%s] Exit\n", DVB_VERSION);
return 0;
}
- if (advb->tuners)
- kfree(advb->tuners);
- pr_dbg("probe amlogic dvb driver [%s] Exit\n", DVB_VERSION);
- return 0;
error:
for (i = 0; i < advb->async_fifo_total_count; i++) {
if (advb->asyncfifo[i].id != -1)
int ts_out_invert;
unsigned int tuner_num;
- unsigned int tuner_cur;
+ int tuner_cur;
struct aml_tuner *tuners;
bool tuner_attached;