mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
fix panda: remove uninitialized err and check after (#19974)
old-commit-hash: edc2b3f67c561f1a44195a7a07e631a30e4d7747
This commit is contained in:
@@ -28,12 +28,8 @@ void panda_set_power(bool power){
|
||||
}
|
||||
|
||||
Panda::Panda(){
|
||||
int err;
|
||||
|
||||
if (err != 0) { goto fail; }
|
||||
|
||||
// init libusb
|
||||
err = libusb_init(&ctx);
|
||||
int err = libusb_init(&ctx);
|
||||
if (err != 0) { goto fail; }
|
||||
|
||||
#if LIBUSB_API_VERSION >= 0x01000106
|
||||
|
||||
Reference in New Issue
Block a user