[gegl] operations/external/raw-load: Remove redundant code



commit 651f9a40a381f4be7f3dc9cbc7ad02773b4cffdb
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 4 01:41:06 2017 +0100

    operations/external/raw-load: Remove redundant code
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778160

 operations/external/raw-load.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c
index 9e0bc9c..f0d0482 100644
--- a/operations/external/raw-load.c
+++ b/operations/external/raw-load.c
@@ -88,7 +88,6 @@ prepare (GeglOperation *operation)
   if (p->LibRaw == NULL)
     {
       o->user_data = (gpointer)p;
-      p->LibRaw = NULL;
       p->image = NULL;
 
       if ((p->LibRaw = libraw_init(LIBRAW_OPTIONS_NONE)) == NULL)
@@ -155,8 +154,7 @@ process (GeglOperation       *operation,
 
   g_assert (p);
 
-  if (p != NULL &&
-      p->LibRaw != NULL)
+  if (p->LibRaw != NULL)
     {
       if (!(p->LibRaw->progress_flags & LIBRAW_PROGRESS_LOAD_RAW))
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]