Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2b163dd authored by Philipp Reisner's avatar Philipp Reisner Committed by Jens Axboe
Browse files

drbd: lc_element_by_index() never returns NULL

parent 61917bda
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1336,7 +1336,7 @@ int drbd_rs_del_all(struct drbd_conf *mdev)
		/* ok, ->resync is there. */
		for (i = 0; i < mdev->resync->nr_elements; i++) {
			e = lc_element_by_index(mdev->resync, i);
			bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL;
			bm_ext = lc_entry(e, struct bm_extent, lce);
			if (bm_ext->lce.lc_number == LC_FREE)
				continue;
			if (bm_ext->lce.lc_number == mdev->resync_wenr) {