ocfs2: clean up unused parameter 'count' in o2hb_read_block_input()
PATCH 1/1 ocfs2: clean up unused parameter 'count' in o2hb_read_block_input()
clean up unused parameter 'count' in o2hb_read_block_input().
Signed-off-by Jun Piao <[email protected]>
--- fs/ocfs2/cluster/heartbeat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
fs/ocfs2/cluster/heartbeat.c +2 -3
@@ -1456,7 +1456,6 @@ static void o2hb_region_release(struct config_item *item)static int o2hb_read_block_input (struct o2hb_region *reg,const char *page, -size_t count,unsigned long *ret_bytes,unsigned int *ret_bits) {
@@ -1499,8 +1498,8 @@ static ssize_t o2hb_region_block_bytes_store(struct config_item *item,if (reg->hr_bdev)return -EINVAL ; - status =o2hb_read_block_input (reg, page, count, - &block_bytes, &block_bits); + status =o2hb_read_block_input (reg, page, &block_bytes, + &block_bits);if (status)return status;
Signature · 1 line
1.8.4.3
PATCH 1/1 ocfs2: clean up unused parameter 'count' in o2hb_read_block_input()
Quoted 3 lines · piaojun
clean up unused parameter 'count' in
o2hb_read_block_input().Signed-off-by Jun Piao <[email protected]>
Reviewed-by Joseph Qi <[email protected]>
Quoted 28 lines
--- fs/ocfs2/cluster/heartbeat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)fs/ocfs2/cluster/heartbeat.c +2
-3@@ -1456,7 +1456,6 @@ static void o2hb_region_release(struct config_item *item)static int o2hb_read_block_input (struct o2hb_region *reg,const char *page, -size_t count,unsigned long *ret_bytes,unsigned int *ret_bits) {@@ -1499,8 +1498,8 @@ static ssize_t o2hb_region_block_bytes_store(struct config_item *item,if (reg->hr_bdev)return -EINVAL ; - status =o2hb_read_block_input (reg, page, count, - &block_bytes, &block_bits); + status =o2hb_read_block_input (reg, page, &block_bytes, + &block_bits);if (status)return status;