]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd815f01cc77cacbeca29ea3135bcdb610e9c07b0
tree99b3b5c887cb8d4ba244c51fdc9d5ba95102f6b3
parent62dae431542c0daf181077e19008d95ccae471ae
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