projects
/
linux-dmdedup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
463a731
)
desc_table_init cannot return NULL
author
Vasily Tarasov
<tarasov@vasily.name>
Mon, 6 Apr 2015 19:12:00 +0000
(15:12 -0400)
committer
Vasily Tarasov
<tarasov@vasily.name>
Mon, 6 Apr 2015 19:12:00 +0000
(15:12 -0400)
drivers/md/dm-dedup-target.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-dedup-target.c
b/drivers/md/dm-dedup-target.c
index ff190d58d1ade1276777e582e9311722394b34ef..202375fa52026fa140bbbf55db779cfe635280bd 100644
(file)
--- 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;