Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
fb408e6c
Commit
fb408e6c
authored
Jul 07, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get rid of pointless checks for dentry->sb == NULL
it never is... Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a4464dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
fs/cachefiles/bind.c
fs/cachefiles/bind.c
+0
-1
security/tomoyo/realpath.c
security/tomoyo/realpath.c
+1
-1
No files found.
fs/cachefiles/bind.c
View file @
fb408e6c
...
@@ -129,7 +129,6 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache)
...
@@ -129,7 +129,6 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache)
!
root
->
d_inode
->
i_op
->
mkdir
||
!
root
->
d_inode
->
i_op
->
mkdir
||
!
root
->
d_inode
->
i_op
->
setxattr
||
!
root
->
d_inode
->
i_op
->
setxattr
||
!
root
->
d_inode
->
i_op
->
getxattr
||
!
root
->
d_inode
->
i_op
->
getxattr
||
!
root
->
d_sb
||
!
root
->
d_sb
->
s_op
||
!
root
->
d_sb
->
s_op
||
!
root
->
d_sb
->
s_op
->
statfs
||
!
root
->
d_sb
->
s_op
->
statfs
||
!
root
->
d_sb
->
s_op
->
sync_fs
)
!
root
->
d_sb
->
s_op
->
sync_fs
)
...
...
security/tomoyo/realpath.c
View file @
fb408e6c
...
@@ -103,7 +103,7 @@ char *tomoyo_realpath_from_path(struct path *path)
...
@@ -103,7 +103,7 @@ char *tomoyo_realpath_from_path(struct path *path)
if
(
!
buf
)
if
(
!
buf
)
break
;
break
;
/* Get better name for socket. */
/* 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
inode
*
inode
=
dentry
->
d_inode
;
struct
socket
*
sock
=
inode
?
SOCKET_I
(
inode
)
:
NULL
;
struct
socket
*
sock
=
inode
?
SOCKET_I
(
inode
)
:
NULL
;
struct
sock
*
sk
=
sock
?
sock
->
sk
:
NULL
;
struct
sock
*
sk
=
sock
?
sock
->
sk
:
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment