Commit bbc146b4 authored by Federico Vaga's avatar Federico Vaga

tools: spec_scan bugfix

Before this patch, on spec_check_id() error spec_scan() returns that it
found a SPEC, but it is not true.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 8a54ecac
......@@ -101,7 +101,7 @@ static int spec_scan(int *bus, int *devfn)
{
if (*bus >= 0) my_bus = *bus;
if (*devfn >= 0) my_devfn = *devfn;
if (spec_check_id(my_bus, my_devfn))
if (spec_check_id(my_bus, my_devfn) > 0)
{
*bus = my_bus;
*devfn = my_devfn;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment