On 04/08/2014 08:30 AM, Penny Chiu wrote: > Add a function called token_supported in cbootimage_soc_config. > It is used to check if the input token is supported in specific > tegra soc. > diff --git a/src/t114/nvbctlib_t114.c b/src/t114/nvbctlib_t114.c > +int t114_bct_token_supported(parse_token token) > +{ > + int index; > + > + for (index = 0; index < sizeof(t114_root_token_list)/sizeof(t114_root_token_list[0]); index++) It'd be nice if we had an ARRAY_SIZE() macro we could use here... That would also make the line-length a bit more typical. -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html