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
8c4c19f1
Commit
8c4c19f1
authored
Jan 20, 2009
by
Artem Bityutskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBI: remove unused variable
Signed-off-by:
Artem Bityutskiy
<
Artem.Bityutskiy@nokia.com
>
parent
3013ee31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
drivers/mtd/ubi/build.c
drivers/mtd/ubi/build.c
+1
-4
No files found.
drivers/mtd/ubi/build.c
View file @
8c4c19f1
...
...
@@ -380,7 +380,7 @@ static void free_user_volumes(struct ubi_device *ubi)
*/
static
int
uif_init
(
struct
ubi_device
*
ubi
)
{
int
i
,
err
,
do_free
=
0
;
int
i
,
err
;
dev_t
dev
;
sprintf
(
ubi
->
ubi_name
,
UBI_NAME_STR
"%d"
,
ubi
->
ubi_num
);
...
...
@@ -427,13 +427,10 @@ static int uif_init(struct ubi_device *ubi)
out_volumes:
kill_volumes
(
ubi
);
do_free
=
0
;
out_sysfs:
ubi_sysfs_close
(
ubi
);
cdev_del
(
&
ubi
->
cdev
);
out_unreg:
if
(
do_free
)
free_user_volumes
(
ubi
);
unregister_chrdev_region
(
ubi
->
cdev
.
dev
,
ubi
->
vtbl_slots
+
1
);
ubi_err
(
"cannot initialize UBI %s, error %d"
,
ubi
->
ubi_name
,
err
);
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