Skip to content
Permalink
Browse files

tests: usb: Cleanup tests

General test cleanup and remove optimized variables.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
  • Loading branch information...
finikorg authored and nashif committed Mar 26, 2019
1 parent e952033 commit dad6ddef7fa26b93d8b590e9dece9764a983faab
Showing with 4 additions and 7 deletions.
  1. +4 −7 tests/subsys/usb/device/src/main.c
@@ -128,21 +128,18 @@ static int device_init(void)

/* Initialize the USB driver with the right configuration */
ret = usb_set_config(&device_config);
zassert_equal(ret, 0, "usb_set_config() failed");
zassert_equal(ret, TC_PASS, "usb_set_config() failed");

/* Enable USB driver */
ret = usb_enable(&device_config);
zassert_equal(ret, 0, "usb_enable() failed");
zassert_equal(ret, TC_PASS, "usb_enable() failed");

return 0;
return ret;
}

static void test_device_setup(void)
{
int ret;

ret = device_init();
zassert_equal(ret, 0, "init failed");
zassert_equal(device_init(), TC_PASS, "init failed");
}

static void test_device_disable(void)

0 comments on commit dad6dde

Please sign in to comment.
You can’t perform that action at this time.