From aa0b7cd7baafb334fe330e07c45f97732fb478ba Mon Sep 17 00:00:00 2001 From: Cydh Ramdh Date: Fri, 4 Nov 2016 07:27:26 +0700 Subject: [PATCH] Removed duplicate check for storage size Signed-off-by: Cydh Ramdh --- src/map/chrif.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/map/chrif.c b/src/map/chrif.c index 1563fdbc78..78846a0ab3 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -2000,9 +2000,8 @@ void do_init_chrif(void) { exit(EXIT_FAILURE); } - if (sizeof(struct s_storage) > 0xFFFF){ - ShowError("s_storage size = %d is too big to be transmitted. (must be below 0xFFFF) \n", - sizeof(struct s_storage)); + if (sizeof(struct s_storage) > 0xFFFF) { + ShowError("s_storage size = %d is too big to be transmitted. (must be below 0xFFFF)\n", sizeof(struct s_storage)); exit(EXIT_FAILURE); } @@ -2012,11 +2011,6 @@ void do_init_chrif(void) { exit(EXIT_FAILURE); } - if(sizeof(struct s_storage) > 0xFFFF) { - ShowError("s_storage size = %d is too big to be transmitted. (must be below 0xFFFF)\n", sizeof(struct s_storage)); - exit(EXIT_FAILURE); - } - auth_db = idb_alloc(DB_OPT_BASE); auth_db_ers = ers_new(sizeof(struct auth_node),"chrif.c::auth_db_ers",ERS_OPT_NONE);