Commit ed6e96c7 authored by Todd Poynor's avatar Todd Poynor Committed by Greg Kroah-Hartman
Browse files

staging: gasket: remove unnecessary code in coherent allocator



Remove extraneous statement in gasket_config_coherent_allocator()

Reported-by: default avatarDmitry Torokhov <dtor@chromium.org>
Signed-off-by: default avatarZhongze Hu <frankhu@chromium.org>
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ae27b2f9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -420,10 +420,8 @@ static int gasket_config_coherent_allocator(
	if (ibuf.page_table_index >= gasket_dev->num_page_tables)
		return -EFAULT;

	if (ibuf.size > PAGE_SIZE * MAX_NUM_COHERENT_PAGES) {
		ibuf.size = PAGE_SIZE * MAX_NUM_COHERENT_PAGES;
	if (ibuf.size > PAGE_SIZE * MAX_NUM_COHERENT_PAGES)
		return -ENOMEM;
	}

	if (ibuf.enable == 0) {
		ret = gasket_free_coherent_memory(