mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
block: Fix type mismatch in ssize_t_blk_mq_tag_sysfs_show
cppcheck detected following format string mismatch. [blk-mq-tag.c:201]: (warning) %u in format string (no. 1) requires 'unsigned int' but the argument type is 'int'. Change "cpu" from int to unsigned int, because the cpu never become minus value. Signed-off-by: Masanari Iida <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
18741986a4
commit
11c9444407
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ void blk_mq_free_tags(struct blk_mq_tags *tags)
|
|||
ssize_t blk_mq_tag_sysfs_show(struct blk_mq_tags *tags, char *page)
|
||||
{
|
||||
char *orig_page = page;
|
||||
int cpu;
|
||||
unsigned int cpu;
|
||||
|
||||
if (!tags)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue