Commit 9bebb89
smb: client: improve logic in allocate_mr_list()
- use 'mr' as variable name
- use goto lables for easier cleanup
- use destroy_mr_list()
- style fixes
- INIT_WORK(&sc->mr_io.recovery_work, smbd_mr_recovery_work) on success
This will make further changes easier.
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent a8e128b commit 9bebb89
1 file changed
Lines changed: 35 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2385 | 2385 | | |
2386 | 2386 | | |
2387 | 2387 | | |
2388 | | - | |
2389 | | - | |
2390 | | - | |
2391 | | - | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
2392 | 2391 | | |
2393 | 2392 | | |
2394 | 2393 | | |
| |||
2397 | 2396 | | |
2398 | 2397 | | |
2399 | 2398 | | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
2406 | 2410 | | |
2407 | 2411 | | |
2408 | | - | |
| 2412 | + | |
2409 | 2413 | | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
2413 | | - | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
2414 | 2420 | | |
2415 | | - | |
2416 | | - | |
| 2421 | + | |
2417 | 2422 | | |
2418 | | - | |
2419 | | - | |
| 2423 | + | |
| 2424 | + | |
2420 | 2425 | | |
2421 | | - | |
| 2426 | + | |
2422 | 2427 | | |
2423 | 2428 | | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
2424 | 2432 | | |
2425 | 2433 | | |
2426 | | - | |
2427 | | - | |
2428 | | - | |
2429 | | - | |
2430 | | - | |
2431 | | - | |
2432 | | - | |
2433 | | - | |
2434 | | - | |
2435 | | - | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
2436 | 2441 | | |
2437 | 2442 | | |
2438 | 2443 | | |
| |||
0 commit comments