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
772317b5
Commit
772317b5
authored
Mar 29, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dgrp procfs fixes, part 3: kill dead code
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
878c68c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
63 deletions
+0
-63
drivers/staging/dgrp/dgrp_specproc.c
drivers/staging/dgrp/dgrp_specproc.c
+0
-63
No files found.
drivers/staging/dgrp/dgrp_specproc.c
View file @
772317b5
...
@@ -55,17 +55,9 @@ static void register_dgrp_device(struct nd_struct *node,
...
@@ -55,17 +55,9 @@ static void register_dgrp_device(struct nd_struct *node,
void
(
*
register_hook
)(
struct
proc_dir_entry
*
de
));
void
(
*
register_hook
)(
struct
proc_dir_entry
*
de
));
/* File operation declarations */
/* File operation declarations */
static
int
dgrp_gen_proc_open
(
struct
inode
*
,
struct
file
*
);
static
int
dgrp_gen_proc_close
(
struct
inode
*
,
struct
file
*
);
static
int
parse_write_config
(
char
*
);
static
int
parse_write_config
(
char
*
);
static
const
struct
file_operations
dgrp_proc_file_ops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
dgrp_gen_proc_open
,
.
release
=
dgrp_gen_proc_close
,
};
static
struct
inode_operations
proc_inode_ops
=
{
static
struct
inode_operations
proc_inode_ops
=
{
.
permission
=
dgrp_inode_permission
.
permission
=
dgrp_inode_permission
};
};
...
@@ -347,61 +339,6 @@ static void unregister_proc_table(struct dgrp_proc_entry *table,
...
@@ -347,61 +339,6 @@ static void unregister_proc_table(struct dgrp_proc_entry *table,
}
}
}
}
static
int
dgrp_gen_proc_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
struct
proc_dir_entry
*
de
;
struct
dgrp_proc_entry
*
entry
;
int
ret
=
0
;
de
=
(
struct
proc_dir_entry
*
)
PDE
(
file_inode
(
file
));
if
(
!
de
||
!
de
->
data
)
{
ret
=
-
ENXIO
;
goto
done
;
}
entry
=
(
struct
dgrp_proc_entry
*
)
de
->
data
;
if
(
!
entry
)
{
ret
=
-
ENXIO
;
goto
done
;
}
down
(
&
entry
->
excl_sem
);
if
(
entry
->
excl_cnt
)
ret
=
-
EBUSY
;
else
entry
->
excl_cnt
++
;
up
(
&
entry
->
excl_sem
);
done:
return
ret
;
}
static
int
dgrp_gen_proc_close
(
struct
inode
*
inode
,
struct
file
*
file
)
{
struct
proc_dir_entry
*
de
;
struct
dgrp_proc_entry
*
entry
;
de
=
(
struct
proc_dir_entry
*
)
PDE
(
file_inode
(
file
));
if
(
!
de
||
!
de
->
data
)
goto
done
;
entry
=
(
struct
dgrp_proc_entry
*
)
de
->
data
;
if
(
!
entry
)
goto
done
;
down
(
&
entry
->
excl_sem
);
if
(
entry
->
excl_cnt
)
entry
->
excl_cnt
=
0
;
up
(
&
entry
->
excl_sem
);
done:
return
0
;
}
static
void
*
dgrp_config_proc_start
(
struct
seq_file
*
m
,
loff_t
*
pos
)
static
void
*
dgrp_config_proc_start
(
struct
seq_file
*
m
,
loff_t
*
pos
)
{
{
return
seq_list_start_head
(
&
nd_struct_list
,
*
pos
);
return
seq_list_start_head
(
&
nd_struct_list
,
*
pos
);
...
...
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