Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
e22f7f5f
Commit
e22f7f5f
authored
22 years ago
by
David S. Miller
Browse files
Options
Download
Email Patches
Plain Diff
net/bluetooth/bnep/sock.c: Kill another sockfd_lookup re-implementation.
parent
834b9fe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
net/bluetooth/bnep/sock.c
net/bluetooth/bnep/sock.c
+0
-25
No files found.
net/bluetooth/bnep/sock.c
View file @
e22f7f5f
...
...
@@ -55,31 +55,6 @@
#define BT_DBG( A... )
#endif
static
struct
socket
*
sockfd_lookup
(
int
fd
,
int
*
err
)
{
struct
file
*
file
;
struct
inode
*
inode
;
struct
socket
*
sock
;
if
(
!
(
file
=
fget
(
fd
)))
{
*
err
=
-
EBADF
;
return
NULL
;
}
inode
=
file
->
f_dentry
->
d_inode
;
if
(
!
inode
->
i_sock
||
!
(
sock
=
SOCKET_I
(
inode
)))
{
*
err
=
-
ENOTSOCK
;
fput
(
file
);
return
NULL
;
}
if
(
sock
->
file
!=
file
)
{
printk
(
KERN_ERR
"socki_lookup: socket file changed!
\n
"
);
sock
->
file
=
file
;
}
return
sock
;
}
static
int
bnep_sock_release
(
struct
socket
*
sock
)
{
struct
sock
*
sk
=
sock
->
sk
;
...
...
This diff is collapsed.
Click to expand it.
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