From: Vasily Tarasov Date: Mon, 6 Apr 2015 19:12:00 +0000 (-0400) Subject: desc_table_init cannot return NULL X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=1886973b8c855d41bb322eddb5bd78db3f149d73;p=linux-dmdedup.git desc_table_init cannot return NULL --- diff --git a/drivers/md/dm-dedup-target.c b/drivers/md/dm-dedup-target.c index ff190d58d1a..202375fa520 100644 --- a/drivers/md/dm-dedup-target.c +++ b/drivers/md/dm-dedup-target.c @@ -680,7 +680,7 @@ static int dm_dedup_ctr(struct dm_target *ti, unsigned int argc, char **argv) } dc->desc_table = desc_table_init(da.hash_algo); - if (!dc->desc_table || IS_ERR(dc->desc_table)) { + if (IS_ERR(dc->desc_table)) { ti->error = "failed to initialize crypto API"; r = PTR_ERR(dc->desc_table); goto bad_metadata_init;