[gtk+] Remove a redundant NULL check



commit f68c073e33a078b9c3574c5c9a02f44f13f39cb3
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 14 21:53:53 2011 -0400

    Remove a redundant NULL check

 gtk/gtkprinteroption.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkprinteroption.c b/gtk/gtkprinteroption.c
index c2ba064..b2f4d10 100644
--- a/gtk/gtkprinteroption.c
+++ b/gtk/gtkprinteroption.c
@@ -178,8 +178,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
     return;
 
   if ((option->type == GTK_PRINTER_OPTION_TYPE_PICKONE ||
-       option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE) &&
-      value != NULL)
+       option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE))
     {
       int i;
       
@@ -195,7 +194,7 @@ gtk_printer_option_set (GtkPrinterOption *option,
       if (i == option->num_choices)
 	return; /* Not found in available choices */
     }
-  
+          
   g_free (option->value);
   option->value = g_strdup (value);
   



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