forked from MIrrors/gasket-driver
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:
committed by
Alex Van Damme
parent
48ad480759
commit
087af27461
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user