diff --git a/drivers/gpu/nvgpu/include/nvgpu/power_features/pg.h b/drivers/gpu/nvgpu/include/nvgpu/power_features/pg.h index 674adb7f5..ad7ec0491 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/power_features/pg.h +++ b/drivers/gpu/nvgpu/include/nvgpu/power_features/pg.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -34,7 +34,7 @@ struct gk20a; int err = 0; \ err = nvgpu_pg_elpg_disable(g);\ if (err != 0) {\ - err = nvgpu_pg_elpg_enable(g);\ + (void)nvgpu_pg_elpg_enable(g);\ }\ if (err == 0) { \ err = (func); \