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

Commit 5273a258 authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Rafael J. Wysocki
Browse files

ACPI / processor: Remove redundant NULL check before kfree



kfree() on a NULL pointer is a no-op, so remove a redundant NULL
pointer check in map_mat_entry().

[rjw: Changelog]
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ed4cf5b2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -158,7 +158,6 @@ static int map_mat_entry(acpi_handle handle, int type, u32 acpi_id)
	}

exit:
	if (buffer.pointer)
	kfree(buffer.pointer);
	return apic_id;
}