diff options
author | Moritz Fischer <moritz.fischer@ettus.com> | 2019-01-27 13:38:52 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-02-15 11:37:03 -0800 |
commit | f37a9ae717a0de2284bcf6d0efea87875ea5a624 (patch) | |
tree | 74c200631c732de9acedd39053459a3aaf7aa971 | |
parent | 5f10611c16b4c5b7e68cba7d8f0252ebcdf2c750 (diff) | |
download | uhd-f37a9ae717a0de2284bcf6d0efea87875ea5a624.tar.gz uhd-f37a9ae717a0de2284bcf6d0efea87875ea5a624.tar.bz2 uhd-f37a9ae717a0de2284bcf6d0efea87875ea5a624.zip |
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 <moritz.fischer@ettus.com>
-rw-r--r-- | host/lib/usrp/n230/n230_image_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<char*>(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]; |