/* It returns 0 if no resize is needed, 1 otherwise.  */
static int ir_is_resize_needed(struct ir_scancode_table *table, int n_elems)
/* It returns 0 if no resize is needed, 1 otherwise.  */
static int ir_is_resize_needed(struct ir_scancode_table *table, int n_elems)
{
	int cur_size = ir_roundup_tablesize(table->size);
	int new_size = ir_roundup_tablesize(n_elems);
	if (cur_size == new_size)
		return 0;
	return 1;
}