[PATCH v4 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/usbg.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/usbg.c b/src/usbg.c
index e648f0f..51722a1 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -223,6 +223,8 @@ static int usbg_parse_functions(char *path, struct gadget *g)
 		free(dent[i]);
 	}
 	free(dent);
+
+	return 0;
 }
 
 static void usbg_parse_config_attrs(struct config *c)
@@ -295,6 +297,8 @@ static int usbg_parse_configs(char *path, struct gadget *g)
 		free(dent[i]);
 	}
 	free(dent);
+
+	return 0;
 }
 
 static void usbg_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