diff options
author | Herbert Poetzl <herbert@13thfloor.at> | 2011-08-02 12:43:50 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-08-02 12:43:50 +0200 |
commit | f95fe9cfb49f6e625fbb5888cae2ed6f3a276b89 (patch) | |
tree | aed2067ffc71e6d5eb08049692fabdb4d62d6355 /crypto/cts.c | |
parent | aec9f377e4f235c47e27fd8a429555dfa2dda342 (diff) | |
download | linux-exynos-f95fe9cfb49f6e625fbb5888cae2ed6f3a276b89.tar.gz linux-exynos-f95fe9cfb49f6e625fbb5888cae2ed6f3a276b89.tar.bz2 linux-exynos-f95fe9cfb49f6e625fbb5888cae2ed6f3a276b89.zip |
block/genhd.c: remove useless cast in diskstats_show()
Remove the (unsigned long long) cast in diskstats_show() and adjusts the
seq_printf() format string to 'unsigned long'
diskstats_show() uses part_stat_read() to get the stats, which either
accesses the specified field in the struct disk_stats directly (non SMP)
or sums up the per CPU values in a variable of the same type as the field,
so in any case the result will have the same type and range as the
specified field which for all disk_stats entries is unsigned long
Also, for unsigned long ranges the output of %lu should be identical to
the one of %llu, so no change in the actual proc entry contents.
Signed-off-by: Herbert Poetzl <herbert@13thfloor.at>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions