Commit 0ab16d91 authored by Federico Vaga's avatar Federico Vaga

fmc: propagate original error code until the end

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent a9427264
Pipeline #5122 failed
......@@ -311,7 +311,7 @@ int fmc_carrier_register(struct device *parent,
carrier->slot[i] = fmc_carrier_add_slot(carrier, &slot_info[i]);
if (IS_ERR_OR_NULL(carrier->slot[i])) {
dev_err(&carrier->dev, "Failed to add slot %d\n", i);
err = -EINVAL;
err = PTR_ERR(carrier->slot[i]);
goto err_slot;
}
}
......
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