devices: disk: Drop dead code

The way the previous block is structured, this condition will
never trigger

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-01-28 19:46:16 -05:00
parent 01ccaf03be
commit 5d643f8fd9

View File

@ -264,15 +264,10 @@ class DeviceDisk(Device):
num -= amt num -= amt
digits.insert(0, amt) digits.insert(0, amt)
seen_valid = False
gen_t = "" gen_t = ""
for digit in digits: for digit in digits:
if digit == 0: if digit == 0:
if not seen_valid: continue
continue
digit = 1
seen_valid = True
gen_t += "%c" % (ord('a') + digit - 1) gen_t += "%c" % (ord('a') + digit - 1)
return gen_t return gen_t