An initialized bundle structure contains a pointer to its
interface. Because of this there's no need to provide
the interface pointer to gb_manifest_parse_cports(). This
also precludes the possibility of passing a bad interface
pointer.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
* them. Returns the number of cports set up for the bundle, or 0
* if there is an error.
*/
-static u32 gb_manifest_parse_cports(struct gb_interface *intf,
- struct gb_bundle *bundle)
+static u32 gb_manifest_parse_cports(struct gb_bundle *bundle)
{
+ struct gb_interface *intf = bundle->intf;
u32 count = 0;
while (true) {
return 0; /* Error */
/* Now go set up this bundle's functions and cports */
- if (!gb_manifest_parse_cports(intf, bundle))
+ if (!gb_manifest_parse_cports(bundle))
return 0; /* Error parsing cports */
count++;