[PATCH v2 02/12] libusbg: Add missing return statement in non-void functions.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add return 0 in functions which return non-void to
suppress compiler complaint.

Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx>
---
 src/gadget.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gadget.c b/src/gadget.c
index 8ca68b3..8320f34 100644
--- a/src/gadget.c
+++ b/src/gadget.c
@@ -223,6 +223,8 @@ static int gadget_parse_functions(char *path, struct gadget *g)
 		free(dent[i]);
 	}
 	free(dent);
+
+	return 0;
 }
 
 static void gadget_parse_config_attrs(struct config *c)
@@ -295,6 +297,8 @@ static int gadget_parse_configs(char *path, struct gadget *g)
 		free(dent[i]);
 	}
 	free(dent);
+
+	return 0;
 }
 
 static void gadget_parse_attrs(char *path, struct gadget *g)
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux