mirror of https://gitee.com/openkylin/linux.git
[media] lirc_zilog: Deletion of unnecessary checks before vfree()
The vfree() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
9a4ea5a986
commit
e8379ecff3
|
@ -730,11 +730,9 @@ static int send_boot_data(struct IR_tx *tx)
|
|||
static void fw_unload_locked(void)
|
||||
{
|
||||
if (tx_data) {
|
||||
if (tx_data->code_sets)
|
||||
vfree(tx_data->code_sets);
|
||||
vfree(tx_data->code_sets);
|
||||
|
||||
if (tx_data->datap)
|
||||
vfree(tx_data->datap);
|
||||
vfree(tx_data->datap);
|
||||
|
||||
vfree(tx_data);
|
||||
tx_data = NULL;
|
||||
|
|
Loading…
Reference in New Issue