Re: [PATCH] Bluetooth: Fix compiler warning with selftest duration calculation

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

 



Hi Marcel,

On Fri, Oct 06, 2017, Marcel Holtmann wrote:
>   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@xxxxxxxxxxxx>
> ---
>  net/bluetooth/selftest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to bluetooth-next. Thanks.

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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux