mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
block: replace "len+name" with "name+len" in elv_iosched_show
The "pointer + offset" pattern is more resonable. Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/d9beaee71b14f7b2a39ab0db6458dc0f7d961ceb.1669736350.git.nickyc975@zju.edu.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7a3b3660fd
commit
c6451ede40
@ -783,7 +783,7 @@ ssize_t elv_iosched_show(struct request_queue *q, char *name)
|
||||
}
|
||||
spin_unlock(&elv_list_lock);
|
||||
|
||||
len += sprintf(len+name, "\n");
|
||||
len += sprintf(name+len, "\n");
|
||||
return len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user