| .. | .. |
|---|
| 111 | 111 | int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, |
|---|
| 112 | 112 | int len) |
|---|
| 113 | 113 | { |
|---|
| 114 | | - int err; |
|---|
| 114 | + int err = 0; |
|---|
| 115 | 115 | |
|---|
| 116 | 116 | ubifs_assert(!c->ro_media && !c->ro_mount); |
|---|
| 117 | 117 | if (c->ro_error) |
|---|
| .. | .. |
|---|
| 133 | 133 | |
|---|
| 134 | 134 | int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len) |
|---|
| 135 | 135 | { |
|---|
| 136 | | - int err; |
|---|
| 136 | + int err = 0; |
|---|
| 137 | 137 | |
|---|
| 138 | 138 | ubifs_assert(!c->ro_media && !c->ro_mount); |
|---|
| 139 | 139 | if (c->ro_error) |
|---|
| .. | .. |
|---|
| 155 | 155 | |
|---|
| 156 | 156 | int ubifs_leb_unmap(struct ubifs_info *c, int lnum) |
|---|
| 157 | 157 | { |
|---|
| 158 | | - int err; |
|---|
| 158 | + int err = 0; |
|---|
| 159 | 159 | |
|---|
| 160 | 160 | ubifs_assert(!c->ro_media && !c->ro_mount); |
|---|
| 161 | 161 | if (c->ro_error) |
|---|
| .. | .. |
|---|
| 176 | 176 | |
|---|
| 177 | 177 | int ubifs_leb_map(struct ubifs_info *c, int lnum) |
|---|
| 178 | 178 | { |
|---|
| 179 | | - int err; |
|---|
| 179 | + int err = 0; |
|---|
| 180 | 180 | |
|---|
| 181 | 181 | ubifs_assert(!c->ro_media && !c->ro_mount); |
|---|
| 182 | 182 | if (c->ro_error) |
|---|