Skip to content

Commit 9de2f4a

Browse files
committed
[decode-syseeprom] Fix use_db in decode-syseeprom
1 parent e49b1e8 commit 9de2f4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/decode-syseeprom

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ def main():
228228

229229
(opts, args) = get_cmdline_opts()
230230

231-
use_db = opts.db and support_eeprom_db
232-
233231
# Get platform name
234232
platform = device_info.get_platform()
235233

@@ -238,6 +236,8 @@ def main():
238236
if any(re.match(p, platform) for p in platforms_without_eeprom_db):
239237
support_eeprom_db = False
240238

239+
use_db = opts.db and support_eeprom_db
240+
241241
if opts.mgmtmac:
242242
print_mgmt_mac(use_db)
243243
elif opts.serial:

0 commit comments

Comments
 (0)