drbd: remove redundant assignment to variable owords
Subsystems (3)
PATCH 1/1 drbd: remove redundant assignment to variable owords
The variable owords is being assigned a value that is never read, the exit path via label out returns before owords is ever used again. The assignment is redundant and can be removed.
Cleans up clang scan build warning:drivers/block/drbd/drbd_bitmap.c:654:3: warning: Value stored to 'owords' is never read [deadcode.DeadStores]
Signed-off-by Colin Ian King <[email protected]>
--- drivers/block/drbd/drbd_bitmap.c | 1 - 1 file changed, 1 deletion(-)
drivers/block/drbd/drbd_bitmap.c +0 -1
@@ -651,7 +651,6 @@ int drbd_bm_resize(struct drbd_device *device, sector_t capacity, int set_new_bispin_lock_irq (&b->bm_lock); opages = b->bm_pages; onpages = b->bm_number_of_pages; - owords = b->bm_words; b->bm_pages =NULL ; b->bm_number_of_pages = b->bm_set =
Signature · 1 line
2.39.2