5eff8ef Simplify the partition detection

Authored and Committed by lkundrak 7 months ago
    Simplify the partition detection
    
    Two levels of conditioning are unnecessary. Also, broken: this wouldn't
    detect the partitions correctly on devices that prepend 'n' to the
    partitions on devices other than mmcblk, such as loop devices.
    
        
file modified
+31 -42