Commit 831475c
dm crypt: replaced #if defined with IS_ENABLED
IS_ENABLED(CONFIG_ENCRYPTED_KEYS) is true whether the option is built-in
or a module, so use it instead of #if defined checking for each
separately.
The other #if was to avoid a static function defined, but unused
warning. As we now always build the callsite when the function
is defined, we can remove that first #if guard.
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Acked-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>1 parent 21ec672 commit 831475c
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2436 | 2436 | | |
2437 | 2437 | | |
2438 | 2438 | | |
2439 | | - | |
2440 | 2439 | | |
2441 | 2440 | | |
2442 | 2441 | | |
| |||
2452 | 2451 | | |
2453 | 2452 | | |
2454 | 2453 | | |
2455 | | - | |
2456 | 2454 | | |
2457 | 2455 | | |
2458 | 2456 | | |
| |||
2482 | 2480 | | |
2483 | 2481 | | |
2484 | 2482 | | |
2485 | | - | |
2486 | | - | |
| 2483 | + | |
| 2484 | + | |
2487 | 2485 | | |
2488 | 2486 | | |
2489 | | - | |
2490 | 2487 | | |
2491 | 2488 | | |
2492 | 2489 | | |
| |||
0 commit comments