greybus: manifest: use size_t for a size variable
authorAlex Elder <elder@linaro.org>
Fri, 27 Mar 2015 20:06:24 +0000 (15:06 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:28:13 +0000 (15:28 +0200)
commitd8187aa2241136e9fb3801e82fe8c2dfdae06802
treec73dc31e777a8d601ec162503b8769989f27fb90
parent973ccfd62686a2331f43b0053de052d958f50d31
greybus: manifest: use size_t for a size variable

In identify_descriptor(), the variable desc_size represents the size
of a memory object.  So change its type from int to size_t.

The return value for this function can be desc_size cast to int.
One can verify by inspection this will never exceed INT_MAX.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/manifest.c