diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-04-02 08:40:33 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2010-04-02 08:40:33 +0200 |
commit | b2b163dd47024e445410b72d0c5df6d819c14dfd (patch) | |
tree | 587717f64b0c52c7b56de1f44a89843d9a2f08d9 | |
parent | 61917bdaaf6bea4b885525cf63f65272914f6be2 (diff) | |
download | kernel_samsung_smdk4412-b2b163dd47024e445410b72d0c5df6d819c14dfd.tar.gz kernel_samsung_smdk4412-b2b163dd47024e445410b72d0c5df6d819c14dfd.tar.bz2 kernel_samsung_smdk4412-b2b163dd47024e445410b72d0c5df6d819c14dfd.zip |
drbd: lc_element_by_index() never returns NULL
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r-- | drivers/block/drbd/drbd_actlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c index 43e57f395fd..df018990c42 100644 --- a/drivers/block/drbd/drbd_actlog.c +++ b/drivers/block/drbd/drbd_actlog.c @@ -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) { |