summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2010-04-09 21:49:42 +0200
committerWolfgang Denk <wd@denx.de>2010-04-09 21:49:42 +0200
commit74b86d2d51843a48b5ca4981173f95768e3466cc (patch)
tree48b33b4cd6d6ac633c2859166dd2a2653b53ad03 /common
parent2aa4c57a101c0432e110561f5439560faf4e8018 (diff)
parent3b653fdb322028b27c5ae3d60ecb0eea2d58837f (diff)
Merge branch 'master' of git://git.denx.de/u-boot-ubi
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ubi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_ubi.c b/common/cmd_ubi.c
index 54faac1c931..2484b404914 100644
--- a/common/cmd_ubi.c
+++ b/common/cmd_ubi.c
@@ -190,7 +190,7 @@ static int ubi_remove_vol(char *volume)
{
int i, err, reserved_pebs;
int found = 0, vol_id = 0;
- struct ubi_volume *vol;
+ struct ubi_volume *vol = NULL;
for (i = 0; i < ubi->vtbl_slots; i++) {
vol = ubi->volumes[i];