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)
commite2f00f0b9876387e38849e7b1338ac684a7a6562
treede2cf47edb5edba3ee3e2cb4f644d9e94a1886bd
parent99ccddf5af6f32f501e719024e5e699565c6552e
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