catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia8f2ae95679f98f2fc3f32239bbf3b3578c35888
diff --git a/procedures/p9/cleanup_pcie.cpp b/procedures/p9/cleanup_pcie.cpp
index 316700d..d84b7c9 100644
--- a/procedures/p9/cleanup_pcie.cpp
+++ b/procedures/p9/cleanup_pcie.cpp
@@ -51,7 +51,7 @@
{
writeReg(target, P9_ROOT_CTRL1_CLEAR, 0x00001C00);
}
- catch (std::exception& e)
+ catch (const std::exception& e)
{
// Don't need an error log coming from the power off
// path, just keep trying on the other processors.
@@ -59,7 +59,7 @@
}
}
}
- catch (file_error::Open& e)
+ catch (const file_error::Open& e)
{
// For this procedure we can ignore the ::Open error
}