Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
732aeacf
Commit
732aeacf
authored
Dec 15, 2007
by
Artem Bityutskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBI: minor tidy-ups
Signed-off-by:
Artem Bityutskiy
<
Artem.Bityutskiy@nokia.com
>
parent
54b2c8f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/mtd/ubi/vmt.c
drivers/mtd/ubi/vmt.c
+4
-3
No files found.
drivers/mtd/ubi/vmt.c
View file @
732aeacf
...
...
@@ -71,7 +71,6 @@ static ssize_t vol_attribute_show(struct device *dev,
struct
device_attribute
*
attr
,
char
*
buf
)
{
int
ret
=
-
ENODEV
;
struct
ubi_volume
*
vol
=
container_of
(
dev
,
struct
ubi_volume
,
dev
);
spin_lock
(
&
vol
->
ubi
->
volumes_lock
);
...
...
@@ -79,6 +78,7 @@ static ssize_t vol_attribute_show(struct device *dev,
spin_unlock
(
&
vol
->
ubi
->
volumes_lock
);
return
ret
;
}
if
(
attr
==
&
attr_vol_reserved_ebs
)
ret
=
sprintf
(
buf
,
"%d
\n
"
,
vol
->
reserved_pebs
);
else
if
(
attr
==
&
attr_vol_type
)
{
...
...
@@ -95,9 +95,9 @@ static ssize_t vol_attribute_show(struct device *dev,
ret
=
sprintf
(
buf
,
"%d
\n
"
,
vol
->
corrupted
);
else
if
(
attr
==
&
attr_vol_alignment
)
ret
=
sprintf
(
buf
,
"%d
\n
"
,
vol
->
alignment
);
else
if
(
attr
==
&
attr_vol_usable_eb_size
)
{
else
if
(
attr
==
&
attr_vol_usable_eb_size
)
ret
=
sprintf
(
buf
,
"%d
\n
"
,
vol
->
usable_leb_size
);
}
else
if
(
attr
==
&
attr_vol_data_bytes
)
else
if
(
attr
==
&
attr_vol_data_bytes
)
ret
=
sprintf
(
buf
,
"%lld
\n
"
,
vol
->
used_bytes
);
else
if
(
attr
==
&
attr_vol_upd_marker
)
ret
=
sprintf
(
buf
,
"%d
\n
"
,
vol
->
upd_marker
);
...
...
@@ -111,6 +111,7 @@ static ssize_t vol_attribute_show(struct device *dev,
static
void
vol_release
(
struct
device
*
dev
)
{
struct
ubi_volume
*
vol
=
container_of
(
dev
,
struct
ubi_volume
,
dev
);
ubi_assert
(
vol
->
removed
);
kfree
(
vol
);
}
...
...
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