Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8379ecf authored by Markus Elfring's avatar Markus Elfring Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 9a4ea5a9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -730,10 +730,8 @@ 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);

		if (tx_data->datap)
		vfree(tx_data->datap);

		vfree(tx_data);