[PATCH 2/9] filetype: add is_barebox_head
Alexander Aring
alex.aring at gmail.com
Sat Jan 19 13:04:20 EST 2013
Hi
2013/1/19 Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> to detect if it's a barebox for the current running arch
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> include/filetype.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/filetype.h b/include/filetype.h
> index c2af917..05b0f5c 100644
> --- a/include/filetype.h
> +++ b/include/filetype.h
> @@ -66,4 +66,9 @@ static inline int is_barebox_mips_head(const char *head)
> }
> #endif
>
> +static inline int is_barebox_head(const char *head)
> +{
> + return is_barebox_mips_head(head) || is_barebox_mips_head(head);
>
Is this not the same like:
return is_barebox_mips_head(head); ?
Or is there some side effects during the first call of
is_barebox_mips_head(head)?
Regards
Alex
> +}
> +
> #endif /* __FILE_TYPE_H */
> --
> 1.7.10.4
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20130119/ffd2a5de/attachment.html>
More information about the barebox
mailing list