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
Kirill Smelkov
linux
Commits
e22f7f5f
Commit
e22f7f5f
authored
Oct 15, 2002
by
David S. Miller
Browse files
Options
Browse Files
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
;
...
...
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