[easytag/wip/ax-compile-warnings: 9/11] Remove redundant comparison
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/ax-compile-warnings: 9/11] Remove redundant comparison
- Date: Tue, 3 Feb 2015 08:52:51 +0000 (UTC)
commit b0701f52d79eb0299d62fec820d0deb23389d259
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]