block: remove unneeded parenthesis from blk-sysfs

Align to common code conventions.

Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Link: https://lore.kernel.org/r/20210511155319.1885277-1-mgurtovoy@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Max Gurtovoy 2021-05-11 15:53:19 +00:00 committed by Jens Axboe
parent b5f3352e08
commit 8c390ff910
1 changed files with 8 additions and 8 deletions

View File

@ -91,7 +91,7 @@ static ssize_t queue_ra_show(struct request_queue *q, char *page)
unsigned long ra_kb = q->backing_dev_info->ra_pages << unsigned long ra_kb = q->backing_dev_info->ra_pages <<
(PAGE_SHIFT - 10); (PAGE_SHIFT - 10);
return queue_var_show(ra_kb, (page)); return queue_var_show(ra_kb, page);
} }
static ssize_t static ssize_t
@ -112,28 +112,28 @@ static ssize_t queue_max_sectors_show(struct request_queue *q, char *page)
{ {
int max_sectors_kb = queue_max_sectors(q) >> 1; int max_sectors_kb = queue_max_sectors(q) >> 1;
return queue_var_show(max_sectors_kb, (page)); return queue_var_show(max_sectors_kb, page);
} }
static ssize_t queue_max_segments_show(struct request_queue *q, char *page) static ssize_t queue_max_segments_show(struct request_queue *q, char *page)
{ {
return queue_var_show(queue_max_segments(q), (page)); return queue_var_show(queue_max_segments(q), page);
} }
static ssize_t queue_max_discard_segments_show(struct request_queue *q, static ssize_t queue_max_discard_segments_show(struct request_queue *q,
char *page) char *page)
{ {
return queue_var_show(queue_max_discard_segments(q), (page)); return queue_var_show(queue_max_discard_segments(q), page);
} }
static ssize_t queue_max_integrity_segments_show(struct request_queue *q, char *page) static ssize_t queue_max_integrity_segments_show(struct request_queue *q, char *page)
{ {
return queue_var_show(q->limits.max_integrity_segments, (page)); return queue_var_show(q->limits.max_integrity_segments, page);
} }
static ssize_t queue_max_segment_size_show(struct request_queue *q, char *page) static ssize_t queue_max_segment_size_show(struct request_queue *q, char *page)
{ {
return queue_var_show(queue_max_segment_size(q), (page)); return queue_var_show(queue_max_segment_size(q), page);
} }
static ssize_t queue_logical_block_size_show(struct request_queue *q, char *page) static ssize_t queue_logical_block_size_show(struct request_queue *q, char *page)
@ -261,12 +261,12 @@ static ssize_t queue_max_hw_sectors_show(struct request_queue *q, char *page)
{ {
int max_hw_sectors_kb = queue_max_hw_sectors(q) >> 1; int max_hw_sectors_kb = queue_max_hw_sectors(q) >> 1;
return queue_var_show(max_hw_sectors_kb, (page)); return queue_var_show(max_hw_sectors_kb, page);
} }
static ssize_t queue_virt_boundary_mask_show(struct request_queue *q, char *page) static ssize_t queue_virt_boundary_mask_show(struct request_queue *q, char *page)
{ {
return queue_var_show(q->limits.virt_boundary_mask, (page)); return queue_var_show(q->limits.virt_boundary_mask, page);
} }
#define QUEUE_SYSFS_BIT_FNS(name, flag, neg) \ #define QUEUE_SYSFS_BIT_FNS(name, flag, neg) \