Home
last modified time | relevance | path

Searched hist:b49ef29d72bd2975b8b2cc84b1fa6b40aa2edd5f (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/bluetooth/
H A Dselftest.cdiff b49ef29d72bd2975b8b2cc84b1fa6b40aa2edd5f Fri Oct 06 13:42:45 CDT 2017 Marcel Holtmann <marcel@holtmann.org> Bluetooth: Fix compiler warning with selftest duration calculation

CC net/bluetooth/selftest.o
net/bluetooth/selftest.c: In function ‘bt_selftest_init’:
net/bluetooth/selftest.c:246:3: warning: ‘duration’ may be used uninitialized in this function [-Wmaybe-uninitialized]
snprintf(test_ecdh_buffer, sizeof(test_ecdh_buffer),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"PASS (%llu usecs)\n", duration);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
net/bluetooth/selftest.c:203:21: note: ‘duration’ was declared here
unsigned long long duration;
^~~~~~~~

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>