commit | 70596f2fd740c0e1f7ac76db8a1b75cf73fdd8af | [log] [tgz] |
---|---|---|
author | Todd Poynor <toddpoynor@google.com> | Sat Jul 21 06:34:55 2018 -0700 |
committer | Alex Van Damme <atv@google.com> | Tue Jun 25 16:10:06 2019 -0700 |
tree | 41972154aadd4b57bba5273b5cb71e226e68c60e | |
parent | 7b50102e2fa762bcebd2da673fba5140080bf8c2 [diff] |
staging: gasket: remove duplicate call to retrieve device callback 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 <dtor@chromium.org> Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>