1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: simplier loop condition

Check char for != 0.
This commit is contained in:
Zdenek Kabelac 2024-05-24 00:34:00 +02:00
parent 9ab2607c7f
commit ddf3b6e5e3

View File

@ -4185,7 +4185,7 @@ int get_crypt_table_offset(dev_t crypt_devt, uint32_t *offset_bytes)
* <cipher> <key> <iv_offset> <device> <offset> [<#opt_params> <opt_params>]
* <offset> is reported in 512 byte sectors.
*/
for (i = 0; i < strlen(params); i++) {
for (i = 0; params[i]; i++) {
if (params[i] == ' ') {
spaces++;
if (spaces == 4)