Skip to content
  • Ondrej Kozina's avatar
    code cleanup related to devfd checks · 16fab74a
    Ondrej Kozina authored and Milan Broz's avatar Milan Broz committed
    alter all checks for devfd value after device_open to
    less than zero insted of equals to -1. device_open will
    return values different from -1 in case error happens.
    
    In LUKSv1 device_open should always return -1 in case of
    error but this check is safer.
    
    The rest is just formating improvement.
    16fab74a