OSDN Git Service

staging: gasket: sysfs: remove unnecessary NULL check on device ptr
authorTodd Poynor <toddpoynor@google.com>
Sat, 28 Jul 2018 05:21:58 +0000 (22:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 28 Jul 2018 07:24:10 +0000 (09:24 +0200)
commit14d70229777f17fe3c22deb559821038663bae78
treec567d0d0414a59a77c395ad6bf49c77979414a34
parentf390d08d8b872a0f71db45bc970a238475679fac
staging: gasket: sysfs: remove unnecessary NULL check on device ptr

The device pointer passed into get_mapping() will never be NULL; the
check is unnecessary.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_sysfs.c