]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c57587e60dd66033df7aba9695ffe8739be745d
treec567d0d0414a59a77c395ad6bf49c77979414a34
parent1d0836950c4f432d73263ecb2171ba7b5654d9bf
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