Commit 0546858
block: get rid of unnecessary local variable
Since whole elevator register is protectd by sysfs_lock, we
don't need extras 'has_elevator'. Just use q->elevator directly.
Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent f0c6ae0 commit 0546858
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
| |||
899 | 898 | | |
900 | 899 | | |
901 | 900 | | |
902 | | - | |
903 | 901 | | |
904 | 902 | | |
905 | 903 | | |
| |||
908 | 906 | | |
909 | 907 | | |
910 | 908 | | |
911 | | - | |
| 909 | + | |
912 | 910 | | |
913 | 911 | | |
914 | 912 | | |
| |||
0 commit comments