summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sh2/sh2dasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sh2/sh2dasm.cpp')
-rw-r--r--src/devices/cpu/sh2/sh2dasm.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/devices/cpu/sh2/sh2dasm.cpp b/src/devices/cpu/sh2/sh2dasm.cpp
index a484c2a9cb4..ef823ee28a5 100644
--- a/src/devices/cpu/sh2/sh2dasm.cpp
+++ b/src/devices/cpu/sh2/sh2dasm.cpp
@@ -606,9 +606,5 @@ unsigned DasmSH2(std::ostream &stream, unsigned pc, uint16_t opcode)
CPU_DISASSEMBLE(sh2)
{
- std::ostringstream stream;
- offs_t result = DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]);
- std::string stream_str = stream.str();
- strcpy(buffer, stream_str.c_str());
- return result;
+ return DasmSH2(stream, pc, (oprom[0] << 8) | oprom[1]);
}