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
16f557ec
Commit
16f557ec
authored
Dec 19, 2007
by
Artem Bityutskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBI: fix comment
Signed-off-by:
Artem Bityutskiy
<
Artem.Bityutskiy@nokia.com
>
parent
593dd33c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
drivers/mtd/ubi/vtbl.c
drivers/mtd/ubi/vtbl.c
+2
-3
drivers/mtd/ubi/wl.c
drivers/mtd/ubi/wl.c
+3
-6
No files found.
drivers/mtd/ubi/vtbl.c
View file @
16f557ec
...
...
@@ -115,9 +115,8 @@ int ubi_change_vtbl_record(struct ubi_device *ubi, int idx,
}
/**
* v
ol_ti
l_check - check if volume table is not corrupted and contains sensible
* v
tb
l_check - check if volume table is not corrupted and contains sensible
* data.
*
* @ubi: UBI device description object
* @vtbl: volume table
*
...
...
drivers/mtd/ubi/wl.c
View file @
16f557ec
...
...
@@ -259,7 +259,6 @@ static int do_work(struct ubi_device *ubi)
*/
down_read
(
&
ubi
->
work_sem
);
spin_lock
(
&
ubi
->
wl_lock
);
if
(
list_empty
(
&
ubi
->
works
))
{
spin_unlock
(
&
ubi
->
wl_lock
);
up_read
(
&
ubi
->
work_sem
);
...
...
@@ -268,6 +267,8 @@ static int do_work(struct ubi_device *ubi)
wrk
=
list_entry
(
ubi
->
works
.
next
,
struct
ubi_work
,
list
);
list_del
(
&
wrk
->
list
);
ubi
->
works_count
-=
1
;
ubi_assert
(
ubi
->
works_count
>=
0
);
spin_unlock
(
&
ubi
->
wl_lock
);
/*
...
...
@@ -278,12 +279,8 @@ static int do_work(struct ubi_device *ubi)
err
=
wrk
->
func
(
ubi
,
wrk
,
0
);
if
(
err
)
ubi_err
(
"work failed with error code %d"
,
err
);
spin_lock
(
&
ubi
->
wl_lock
);
ubi
->
works_count
-=
1
;
ubi_assert
(
ubi
->
works_count
>=
0
);
spin_unlock
(
&
ubi
->
wl_lock
);
up_read
(
&
ubi
->
work_sem
);
return
err
;
}
...
...
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