[PATCH 02/14] staging: gasket: remove duplicate call to retrieve device callback

2018-07-21 Thread Todd Poynor
From: Todd Poynor gasket_handle_ioctl() calls gasket_get_ioctl_permissions_cb() twice; simplify the code and avoid duplicated work by fetching the callback pointer only once. Reported-by: Dmitry Torokhov Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 7 --- 1 file

[PATCH 02/14] staging: gasket: remove duplicate call to retrieve device callback

2018-07-21 Thread Todd Poynor
From: Todd Poynor gasket_handle_ioctl() calls gasket_get_ioctl_permissions_cb() twice; simplify the code and avoid duplicated work by fetching the callback pointer only once. Reported-by: Dmitry Torokhov Signed-off-by: Todd Poynor --- drivers/staging/gasket/gasket_ioctl.c | 7 --- 1 file