staging: gasket: remove unnecessary NULL checks on calls from VFS
authorTodd Poynor <toddpoynor@google.com>
Sat, 21 Jul 2018 13:34:59 +0000 (06:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jul 2018 11:56:46 +0000 (13:56 +0200)
commit99ccddf5af6f32f501e719024e5e699565c6552e
tree00826d06db1b28e4fe66f19558c5a81e685ba20a
parenta1978fa2d632c9001d1d68dac3926177af96c64e
staging: gasket: remove unnecessary NULL checks on calls from VFS

Remove unneeded checks for NULL pointers in struct file pointers passed
from the VFS layer or the private_data that must have been properly set
at file open time.

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