Commit ca62009
scsi: sr: Simplify the sr_open() function
Simplify the sr_open() by removing the goto label as the function only
returns one error code.
Signed-off-by: Enze Li <lienze@kylinos.cn>
Link: https://lore.kernel.org/r/20230327030237.3407253-1-lienze@kylinos.cn
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent aa4d781 commit ca62009
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | 593 | | |
595 | 594 | | |
596 | 595 | | |
597 | 596 | | |
598 | 597 | | |
599 | | - | |
600 | 598 | | |
601 | | - | |
| 599 | + | |
602 | 600 | | |
603 | 601 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | 602 | | |
608 | 603 | | |
609 | 604 | | |
| |||
0 commit comments