aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-07 15:12:51 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-20 01:44:19 -0400
commitfb408e6ccc32404a05783911b6f3fed56bd17b06 (patch)
treead19408c2e4b2f8eaac9e3dc541f432fc85bc2fd /security
parenta4464dbc0ca6a3ab8e9d1206bc05059dae2a559d (diff)
downloadlinux-linaro-precise-fb408e6ccc32404a05783911b6f3fed56bd17b06.tar.gz
get rid of pointless checks for dentry->sb == NULL
it never is... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r--security/tomoyo/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/realpath.c b/security/tomoyo/realpath.c
index d1e05b04771..8d95e91c9fc 100644
--- a/security/tomoyo/realpath.c
+++ b/security/tomoyo/realpath.c
@@ -103,7 +103,7 @@ char *tomoyo_realpath_from_path(struct path *path)
if (!buf)
break;
/* Get better name for socket. */
- if (dentry->d_sb && dentry->d_sb->s_magic == SOCKFS_MAGIC) {
+ if (dentry->d_sb->s_magic == SOCKFS_MAGIC) {
struct inode *inode = dentry->d_inode;
struct socket *sock = inode ? SOCKET_I(inode) : NULL;
struct sock *sk = sock ? sock->sk : NULL;