cifs: remove unneeded NULL checks from cifs_show_options
authorJeff Layton <jlayton@redhat.com>
Thu, 11 Jun 2009 14:27:28 +0000 (10:27 -0400)
committerSteve French <sfrench@us.ibm.com>
Sat, 13 Jun 2009 08:17:30 +0000 (08:17 +0000)
commit8616e0fc1e27295316f9821a883f0e9fa6f8200f
tree99b3b5c887cb8d4ba244c51fdc9d5ba95102f6b3
parentf3ad116588151b3371ae4e092290e4f48e62b8bb
cifs: remove unneeded NULL checks from cifs_show_options

show_options is always called with the namespace_sem held. Therefore we
don't need to worry about the vfsmount being NULL, or it vanishing while
the function is running. By the same token, there's no need to worry
about the superblock, tcon, smb or tcp sessions being NULL on entry.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c