Commit af5d6f7
nvme-core: remove extra variable
In nvme_validate_ns() the exra variable ctrl is used only twice.
Using ns->ctrl directly still maintains the redability and original
length of the lines in the code. Get rid of the extra variable ctrl &
use ns->ctrl directly.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>1 parent 7b15336 commit af5d6f7
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3928 | 3928 | | |
3929 | 3929 | | |
3930 | 3930 | | |
3931 | | - | |
3932 | 3931 | | |
3933 | 3932 | | |
3934 | 3933 | | |
3935 | 3934 | | |
3936 | 3935 | | |
3937 | 3936 | | |
3938 | | - | |
| 3937 | + | |
3939 | 3938 | | |
3940 | 3939 | | |
3941 | 3940 | | |
3942 | 3941 | | |
3943 | 3942 | | |
3944 | | - | |
| 3943 | + | |
3945 | 3944 | | |
3946 | 3945 | | |
3947 | 3946 | | |
| |||
0 commit comments