Address of will never be NULL.
---
src/iop/exposure.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/iop/exposure.c b/src/iop/exposure.c
index 83a8d6bab..f82df75de 100644
--- a/src/iop/exposure.c
+++ b/src/iop/exposure.c
@@ -477,9 +477,7 @@ static float get_exposure_bias(const struct dt_iop_module_t
*self)
{
float bias = 0.0f;
- // just check that pointers exist and are initialized
- if(&(self->dev->image_storage) &&
&(self->dev->image_storage.exif_exposure_bias))
- bias = self->dev->image_storage.exif_exposure_bias;
+ bias = self->dev->image_storage.exif_exposure_bias;
// sanity checks because I don't trust exif tags too much
if(!isnan(bias))
--
2.35.1.1.ge5a6898900
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to [email protected]