[gtk+/gtk-3-14] Remove a pointless comparison



commit dea45574c42dbc30a7f590d64142a25ea45ce332
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 22 15:16:14 2015 -0400

    Remove a pointless comparison
    
    Comparing an unsigned value against < 0 is not going to succeed.
    Pointed out by clang.

 gtk/gtkprintoperation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index 1f45c4f..057430b 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -1785,7 +1785,7 @@ _gtk_print_operation_set_status (GtkPrintOperation *op,
     NC_("print operation status", "Finished with error")
   };
 
-  if (status < 0 || status > GTK_PRINT_STATUS_FINISHED_ABORTED)
+  if (status > GTK_PRINT_STATUS_FINISHED_ABORTED)
     status = GTK_PRINT_STATUS_FINISHED_ABORTED;
 
   if (string == NULL)


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