]> mj.ucw.cz Git - pciutils.git/commit
lspci: Remove unnecessary !verbose check in show_range()
authorKelsey Skunberg <skunberg.kelsey@gmail.com>
Wed, 19 Jun 2019 16:48:57 +0000 (10:48 -0600)
committerMartin Mares <mj@ucw.cz>
Tue, 21 Jan 2020 20:49:11 +0000 (21:49 +0100)
commit25f2e4db6ecad1868302bc27d5b1ec7d74a59c19
tree11f087373ac1e9e0f484d53c2a98b802ba87c450
parentc5751fb0197751e9f691b7a924fb7fe1d9d971d7
lspci: Remove unnecessary !verbose check in show_range()

Remove 'if (!verbose)' code in show_range() due to not being called.
show_range() will only be called when verbose is true. Additional call
to check for verbosity within show_range() is dead code.

!verbose was used so nothing would print if the range behind a bridge
had a base > limit and verbose == false. Since show_range() will not be
called when verbose == false, not printing bridge information is
still accomplished.

Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
lspci.c