X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fjtag%2Fdrivers%2Fusb_blaster%2Fublast2_access_libusb.c;h=d991733697b4951fb871771f99590f4c097d6e5e;hb=refs%2Fchanges%2F88%2F3488%2F3;hp=70dab20d58a3561108a33ece50bb597257c366eb;hpb=7568a91c8e2398a113f0b40a2a24a1b91ed12c95;p=openocd.git diff --git a/src/jtag/drivers/usb_blaster/ublast2_access_libusb.c b/src/jtag/drivers/usb_blaster/ublast2_access_libusb.c index 70dab20d58..d991733697 100644 --- a/src/jtag/drivers/usb_blaster/ublast2_access_libusb.c +++ b/src/jtag/drivers/usb_blaster/ublast2_access_libusb.c @@ -13,6 +13,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * */ #ifdef HAVE_CONFIG_H @@ -74,9 +77,6 @@ static int ublast2_write_firmware_section(struct jtag_libusb_device_handle *libu LOG_DEBUG("section %02i at addr 0x%04x (size 0x%04x)", section_index, addr, size); - if (data == NULL) - return ERROR_FAIL; - /* Copy section contents to local buffer */ int ret = image_read_section(firmware_image, section_index, 0, size, data, &size_read);