ipa: rpi: awb_nn: Remove unused constexpr variable
diff mbox series

Message ID 20260302102540.824771-1-naush@raspberrypi.com
State New
Headers show
Series
  • ipa: rpi: awb_nn: Remove unused constexpr variable
Related show

Commit Message

Naushir Patuck March 2, 2026, 10:25 a.m. UTC
The kDefaultCT variable is unused, remove it.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
---
 src/ipa/rpi/controller/rpi/awb_nn.cpp | 2 --
 1 file changed, 2 deletions(-)

Comments

Barnabás Pőcze March 2, 2026, 10:37 a.m. UTC | #1
2026. 03. 02. 11:25 keltezéssel, Naushir Patuck írta:
> The kDefaultCT variable is unused, remove it.
> 
> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
> ---

Possibly:

   Fixes: 045bfb1b8f0a ("ipa: rpi: controller: awb: Add Neural Network AWB")


Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>


>   src/ipa/rpi/controller/rpi/awb_nn.cpp | 2 --
>   1 file changed, 2 deletions(-)
> 
> diff --git a/src/ipa/rpi/controller/rpi/awb_nn.cpp b/src/ipa/rpi/controller/rpi/awb_nn.cpp
> index 1c20512638dd..c382f63d5f21 100644
> --- a/src/ipa/rpi/controller/rpi/awb_nn.cpp
> +++ b/src/ipa/rpi/controller/rpi/awb_nn.cpp
> @@ -35,8 +35,6 @@ using namespace libcamera;
>   
>   LOG_DECLARE_CATEGORY(RPiAwb)
>   
> -constexpr double kDefaultCT = 4500.0;
> -
>   /*
>    * The neural networks are trained to work on images rendered at a canonical
>    * colour temperature. That value is 5000K, which must be reproduced here.
Kieran Bingham March 2, 2026, 10:52 a.m. UTC | #2
Quoting Barnabás Pőcze (2026-03-02 10:37:26)
> 2026. 03. 02. 11:25 keltezéssel, Naushir Patuck írta:
> > The kDefaultCT variable is unused, remove it.
> > 
> > Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
> > ---
> 
> Possibly:
> 
>    Fixes: 045bfb1b8f0a ("ipa: rpi: controller: awb: Add Neural Network AWB")

That would then add this patch to the bug reports on the release notes,
so I'd probably leave that out in this instance.

Removing an unused variable probably doesn't cross the threshold into
fixing a bug, but it's still a valid patch so:


Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> 
> 
> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
> 
> 
> >   src/ipa/rpi/controller/rpi/awb_nn.cpp | 2 --
> >   1 file changed, 2 deletions(-)
> > 
> > diff --git a/src/ipa/rpi/controller/rpi/awb_nn.cpp b/src/ipa/rpi/controller/rpi/awb_nn.cpp
> > index 1c20512638dd..c382f63d5f21 100644
> > --- a/src/ipa/rpi/controller/rpi/awb_nn.cpp
> > +++ b/src/ipa/rpi/controller/rpi/awb_nn.cpp
> > @@ -35,8 +35,6 @@ using namespace libcamera;
> >   
> >   LOG_DECLARE_CATEGORY(RPiAwb)
> >   
> > -constexpr double kDefaultCT = 4500.0;
> > -
> >   /*
> >    * The neural networks are trained to work on images rendered at a canonical
> >    * colour temperature. That value is 5000K, which must be reproduced here.
>

Patch
diff mbox series

diff --git a/src/ipa/rpi/controller/rpi/awb_nn.cpp b/src/ipa/rpi/controller/rpi/awb_nn.cpp
index 1c20512638dd..c382f63d5f21 100644
--- a/src/ipa/rpi/controller/rpi/awb_nn.cpp
+++ b/src/ipa/rpi/controller/rpi/awb_nn.cpp
@@ -35,8 +35,6 @@  using namespace libcamera;
 
 LOG_DECLARE_CATEGORY(RPiAwb)
 
-constexpr double kDefaultCT = 4500.0;
-
 /*
  * The neural networks are trained to work on images rendered at a canonical
  * colour temperature. That value is 5000K, which must be reproduced here.