]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gasket: drop gasket_cdev_get_info, use container_of
authorTodd Poynor <toddpoynor@google.com>
Tue, 17 Jul 2018 20:56:55 +0000 (13:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2018 09:39:47 +0000 (11:39 +0200)
commitb6c870e3de69042b4d6e459d551e37c982bd747d
treeee08f9a01aa3baebdcaa85d4a3a900fc65142b7b
parent83a3455eaf0df61727a48073b41e9854e31a7cd5
staging: gasket: drop gasket_cdev_get_info, use container_of

Remove gasket_cdev_get_info(), use container_of() directly instead,
drop unnecessary NULL checks.

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>
drivers/staging/gasket/gasket_core.c