svn commit: r323023 - head/sys/dev/bhnd/cores/usb
Ed Maste
emaste at FreeBSD.org
Wed Aug 30 17:39:53 UTC 2017
Author: emaste
Date: Wed Aug 30 17:39:51 2017
New Revision: 323023
URL: https://svnweb.freebsd.org/changeset/base/323023
Log:
bhnd: initialize variable before use
Reported by: Clang
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/bhnd/cores/usb/bhnd_usb.c
Modified: head/sys/dev/bhnd/cores/usb/bhnd_usb.c
==============================================================================
--- head/sys/dev/bhnd/cores/usb/bhnd_usb.c Wed Aug 30 17:38:55 2017 (r323022)
+++ head/sys/dev/bhnd/cores/usb/bhnd_usb.c Wed Aug 30 17:39:51 2017 (r323023)
@@ -162,9 +162,8 @@ bhnd_usb_attach(device_t dev)
if ( bhnd_get_device(dev) == BHND_COREID_USB20H) {
- uint32_t rev;
+ uint32_t rev = bhnd_get_hwrev(dev);
BHND_INFO_DEV(dev, "USB HOST 2.0 setup for rev %d", rev);
- rev = bhnd_get_hwrev(dev);
if (rev == 1/* ? == 2 */) {
/* SiBa code */
More information about the svn-src-head
mailing list