Remove unnecessary null check
This commit is contained in:
parent
f69ce8a465
commit
bb6d286736
|
|
@ -136,8 +136,6 @@ void Jtag::init_internal(cable_t &cable, const string &dev, const string &serial
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_LIBGPIOD
|
#ifdef ENABLE_LIBGPIOD
|
||||||
case MODE_LIBGPIOD_BITBANG:
|
case MODE_LIBGPIOD_BITBANG:
|
||||||
if (pin_conf == NULL)
|
|
||||||
throw std::exception();
|
|
||||||
_jtag = new LibgpiodJtagBitbang(pin_conf, dev, clkHZ, _verbose);
|
_jtag = new LibgpiodJtagBitbang(pin_conf, dev, clkHZ, _verbose);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue