]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gasket: gasket_get_device drop check for NULL pci_dev
authorTodd Poynor <toddpoynor@google.com>
Sat, 21 Jul 2018 13:35:00 +0000 (06:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 11:56:46 +0000 (13:56 +0200)
commit94421065a3c41f54efe4021a0e0635aa8c9f9156
treede2cf47edb5edba3ee3e2cb4f644d9e94a1886bd
parent14d88918d7894a9669181ff61cb596317622c32f
staging: gasket: gasket_get_device drop check for NULL pci_dev

The pci_dev field of a struct gasket_dev can never be NULL, there's no
need to check for this in gasket_get_device().

Reported-by: Guenter Roeck <groeck@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