From f37a9ae717a0de2284bcf6d0efea87875ea5a624 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Sun, 27 Jan 2019 13:38:52 -0800 Subject: n230: n230_image_loader: Remove dead store for ptr Remove dead store for ptr. 'ptr += 4' is useless, since nothing uses 'ptr' afterwards. Signed-off-by: Moritz Fischer --- host/lib/usrp/n230/n230_image_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/lib/usrp/n230/n230_image_loader.cpp b/host/lib/usrp/n230/n230_image_loader.cpp index ff5eb6bd9..ac0daa770 100644 --- a/host/lib/usrp/n230/n230_image_loader.cpp +++ b/host/lib/usrp/n230/n230_image_loader.cpp @@ -74,7 +74,7 @@ static void _parse_bitfile_header(const std::string& filepath, xil_bitfile_hdr_t fields[key] = std::string(reinterpret_cast(buf + ptr), size_t(len)); ptr += len; } - hdr.filesize = _to_uint32(buf + ++ptr); ptr += 4; + hdr.filesize = _to_uint32(buf + ++ptr); hdr.fpga = fields[1]; hdr.timestamp = fields[2] + std::string(" ") + fields[3]; -- cgit v1.2.3