Browse Source

md/r5cache: remove redundant pointer bio

Pointer bio is being assigned but is never used hence it is redundant
and can be removed.

Cleans up clang warning:
warning: variable 'bio' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Colin Ian King 7 years ago
parent
commit
ebc7709f65
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/md/raid5-cache.c

+ 0 - 2
drivers/md/raid5-cache.c

@@ -717,7 +717,6 @@ static void r5c_disable_writeback_async(struct work_struct *work)
 static void r5l_submit_current_io(struct r5l_log *log)
 static void r5l_submit_current_io(struct r5l_log *log)
 {
 {
 	struct r5l_io_unit *io = log->current_io;
 	struct r5l_io_unit *io = log->current_io;
-	struct bio *bio;
 	struct r5l_meta_block *block;
 	struct r5l_meta_block *block;
 	unsigned long flags;
 	unsigned long flags;
 	u32 crc;
 	u32 crc;
@@ -730,7 +729,6 @@ static void r5l_submit_current_io(struct r5l_log *log)
 	block->meta_size = cpu_to_le32(io->meta_offset);
 	block->meta_size = cpu_to_le32(io->meta_offset);
 	crc = crc32c_le(log->uuid_checksum, block, PAGE_SIZE);
 	crc = crc32c_le(log->uuid_checksum, block, PAGE_SIZE);
 	block->checksum = cpu_to_le32(crc);
 	block->checksum = cpu_to_le32(crc);
-	bio = io->current_bio;
 
 
 	log->current_io = NULL;
 	log->current_io = NULL;
 	spin_lock_irqsave(&log->io_list_lock, flags);
 	spin_lock_irqsave(&log->io_list_lock, flags);