projects
/
platform
/
upstream
/
cryptsetup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove some gcc extra warnings (signed/unsigned problems etc).
[platform/upstream/cryptsetup.git]
/
lib
/
setup.c
diff --git
a/lib/setup.c
b/lib/setup.c
index
f712b29
..
adf1398
100644
(file)
--- a/
lib/setup.c
+++ b/
lib/setup.c
@@
-2087,7
+2087,7
@@
int crypt_deactivate(struct crypt_device *cd, const char *name)
switch (crypt_status(cd, name)) {
case CRYPT_ACTIVE:
case CRYPT_BUSY:
- if (isTCRYPT(cd->type))
+ if (
cd &&
isTCRYPT(cd->type))
r = TCRYPT_deactivate(cd, name);
else
r = dm_remove_device(cd, name, 0, 0);