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
a72d313f
Commit
a72d313f
authored
Jul 26, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] more NULL noise removal in fs/*
Signed-off-by:
Linus Torvalds
<
torvalds@osdl.org
>
parent
f4163e8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
fs/jffs/jffs_proc.c
fs/jffs/jffs_proc.c
+6
-6
fs/proc/proc_devtree.c
fs/proc/proc_devtree.c
+1
-1
No files found.
fs/jffs/jffs_proc.c
View file @
a72d313f
...
...
@@ -68,9 +68,9 @@ static int jffs_proc_layout_read (char *page, char **start, off_t off,
int
jffs_register_jffs_proc_dir
(
int
mtd
,
struct
jffs_control
*
c
)
{
struct
jffs_partition_dir
*
part_dir
;
struct
proc_dir_entry
*
part_info
=
0
;
struct
proc_dir_entry
*
part_layout
=
0
;
struct
proc_dir_entry
*
part_root
=
0
;
struct
proc_dir_entry
*
part_info
=
NULL
;
struct
proc_dir_entry
*
part_layout
=
NULL
;
struct
proc_dir_entry
*
part_root
=
NULL
;
char
name
[
10
];
sprintf
(
name
,
"%d"
,
mtd
);
...
...
@@ -127,7 +127,7 @@ int jffs_register_jffs_proc_dir(int mtd, struct jffs_control *c)
int
jffs_unregister_jffs_proc_dir
(
struct
jffs_control
*
c
)
{
struct
jffs_partition_dir
*
part_dir
=
jffs_part_dirs
;
struct
jffs_partition_dir
*
prev_part_dir
=
0
;
struct
jffs_partition_dir
*
prev_part_dir
=
NULL
;
while
(
part_dir
)
{
if
(
part_dir
->
c
==
c
)
{
...
...
@@ -209,8 +209,8 @@ static int jffs_proc_layout_read (char *page, char **start, off_t off,
int
count
,
int
*
eof
,
void
*
data
)
{
struct
jffs_control
*
c
=
(
struct
jffs_control
*
)
data
;
struct
jffs_fm
*
fm
=
0
;
struct
jffs_fm
*
last_fm
=
0
;
struct
jffs_fm
*
fm
=
NULL
;
struct
jffs_fm
*
last_fm
=
NULL
;
int
len
=
0
;
/* Get the first item in the list */
...
...
fs/proc/proc_devtree.c
View file @
a72d313f
...
...
@@ -88,7 +88,7 @@ void proc_device_tree_add_node(struct device_node *np, struct proc_dir_entry *de
child
=
NULL
;
while
((
child
=
of_get_next_child
(
np
,
child
)))
{
p
=
strrchr
(
child
->
full_name
,
'/'
);
if
(
p
==
0
)
if
(
!
p
)
p
=
child
->
full_name
;
else
++
p
;
...
...
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