tree-wide: use IN_SET where possible
In addition to the changes from #6933 this handles cases that could be matched with the included cocci file.
This commit is contained in:
@@ -660,7 +660,7 @@ int main(int argc, char *argv[]) {
|
||||
crypt_set_log_callback(cd, log_glue, NULL);
|
||||
|
||||
status = crypt_status(cd, argv[2]);
|
||||
if (status == CRYPT_ACTIVE || status == CRYPT_BUSY) {
|
||||
if (IN_SET(status, CRYPT_ACTIVE, CRYPT_BUSY)) {
|
||||
log_info("Volume %s already active.", argv[2]);
|
||||
r = 0;
|
||||
goto finish;
|
||||
|
||||
Reference in New Issue
Block a user