Commit e66ccd3
VFS: discard err2 in filename_create()
Since 204a575 "VFS: add common error checks to lookup_one_qstr_excl()"
filename_create() does not need to stash the error value from mnt_want_write()
into a separate variable - the logic that used to clobber 'error' after the
call of mnt_want_write() has migrated into lookup_one_qstr_excl().
So there is no need for two different err variables.
This patch discards "err2" and uses "error' throughout.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 17eb98d commit e66ccd3
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4169 | 4169 | | |
4170 | 4170 | | |
4171 | 4171 | | |
4172 | | - | |
4173 | 4172 | | |
4174 | 4173 | | |
4175 | 4174 | | |
| |||
4184 | 4183 | | |
4185 | 4184 | | |
4186 | 4185 | | |
4187 | | - | |
| 4186 | + | |
4188 | 4187 | | |
4189 | 4188 | | |
4190 | 4189 | | |
| |||
4197 | 4196 | | |
4198 | 4197 | | |
4199 | 4198 | | |
4200 | | - | |
4201 | | - | |
| 4199 | + | |
4202 | 4200 | | |
4203 | | - | |
| 4201 | + | |
4204 | 4202 | | |
4205 | 4203 | | |
4206 | 4204 | | |
4207 | 4205 | | |
4208 | 4206 | | |
4209 | 4207 | | |
4210 | | - | |
| 4208 | + | |
4211 | 4209 | | |
4212 | 4210 | | |
4213 | 4211 | | |
| |||
0 commit comments