mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
bhnd: initialize variable before use
Reported by: Clang MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
3460f018f9
commit
53d534724a
1 changed files with 1 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue