summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-07-13 16:18:03 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-07-13 16:18:03 +0200
commit09c861c97572de2302e294ae908225e89237c7ad (patch)
tree11981f7cde3da481fd8920484e809889a3a149fb
parentf8658f941129ab929baacf0e6c1b2092a387d132 (diff)
downloadsecure-hid-09c861c97572de2302e294ae908225e89237c7ad.tar.gz
secure-hid-09c861c97572de2302e294ae908225e89237c7ad.tar.bz2
secure-hid-09c861c97572de2302e294ae908225e89237c7ad.zip
gp_xbox: Do not allow unitialized driver to be loaded
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
-rw-r--r--src/usbh_driver_gp_xbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usbh_driver_gp_xbox.c b/src/usbh_driver_gp_xbox.c
index f1525c4..1b1d895 100644
--- a/src/usbh_driver_gp_xbox.c
+++ b/src/usbh_driver_gp_xbox.c
@@ -77,8 +77,8 @@ void gp_xbox_driver_init(const gp_xbox_config_t *config)
static void *init(void *usbh_dev)
{
if (!initialized) {
- LOG_PRINTF("driver not initialized");
- return false;
+ LOG_PRINTF("\n%s/%d : driver not initialized\r\n", __FILE__, __LINE__);
+ return 0;
}
uint32_t i;