Repository navigation
Commit 03ba84c
target_core: simplify scsi_name_len calculation
scsi_name_len in spc_emulate_evpd_83 is calculated twice, with
the results of the first calculation discarded. So remove it.
And check for the maximum allowed length, too.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>1 parent 9c6e164 commit 03ba84c
1 file changed
Lines changed: 3 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | 368 | | |
379 | 369 | | |
380 | 370 | | |
| |||
402 | 392 | | |
403 | 393 | | |
404 | 394 | | |
| 395 | + | |
405 | 396 | | |
406 | 397 | | |
| 398 | + | |
| 399 | + | |
407 | 400 | | |
408 | 401 | | |
409 | 402 | | |
| |||
0 commit comments