[easytag/wip/ax-compile-warnings: 10/12] Remove redundant comparison
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/ax-compile-warnings: 10/12] Remove redundant comparison
- Date: Tue, 3 Feb 2015 23:26:41 +0000 (UTC)
commit 10ec8bf9ec29882f63327645a49512a15de09a1c
Author: David King <amigadave amigadave com>
Date: Fri Jan 30 15:05:47 2015 +0000
Remove redundant comparison
src/charset.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/charset.c b/src/charset.c
index f95dd38..b5523f0 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -738,8 +738,7 @@ Charset_Get_Name_From_Title (const gchar *charset_title)
const gchar *
et_charset_get_name_from_index (guint index)
{
- g_return_val_if_fail (index >= 0 && index <= CHARSET_TRANS_ARRAY_LEN,
- NULL);
+ g_return_val_if_fail (index <= CHARSET_TRANS_ARRAY_LEN, NULL);
return charset_trans_array[index].charset_name;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]