staging: gasket: remove unnecessary code in coherent allocator
Remove extraneous statement in gasket_config_coherent_allocator() Reported-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Zhongze Hu <frankhu@chromium.org> Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae27b2f9f7
commit
ed6e96c795
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue