From b53d51ca658b87ac4a1f599b1f37df7445049309 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Mon, 6 Aug 2007 15:24:04 +0000 Subject: [PATCH] simplified. 2007-08-06 Sven Neumann * plug-ins/common/lcms.c (run): simplified. svn path=/trunk/; revision=23123 --- ChangeLog | 4 ++++ plug-ins/common/lcms.c | 14 ++++---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 72fcb83a69..2700623f8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-08-06 Sven Neumann + + * plug-ins/common/lcms.c (run): simplified. + 2007-08-06 Sven Neumann * plug-ins/common/svg.c (load_rsvg_pixbuf): set the base URI so diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c index 6d37cb4629..afca5ce104 100644 --- a/plug-ins/common/lcms.c +++ b/plug-ins/common/lcms.c @@ -291,8 +291,7 @@ run (const gchar *name, INIT_I18N (); - values[0].type = GIMP_PDB_STATUS; - values[0].data.d_status = status; + values[0].type = GIMP_PDB_STATUS; *nreturn_vals = 1; *return_vals = values; @@ -304,16 +303,10 @@ run (const gchar *name, } if (proc == NONE) - { - values[0].data.d_status = GIMP_PDB_CALLING_ERROR; - return; - } + goto done; if (nparams < procedures[proc].nparams) - { - values[0].data.d_status = GIMP_PDB_CALLING_ERROR; - return; - } + goto done; if (proc != PROC_FILE_INFO) config = gimp_get_color_configuration (); @@ -391,6 +384,7 @@ run (const gchar *name, break; } + done: if (config) g_object_unref (config);